17BEC028
OS PRACTICAL - 1
• rmdir - remove empty directories.
• rm - remove files or directories. With the -r (recursive) option (very dangerous!), can be
used to remove the contents of a specified directory including all subdirectories.
• sh - standard UNIX shell. On Linux, just another name for bash.
• cal - displays a 12-month calendar for the given year or a one-month calendar of the
given month.
• cd - change working directory. This is a shell builtin in bash, tcsh and zsh.
• chmod - set permissions (modes) of files or directories. A value of 4 is used for read
permission. A value of 2 is used for write permission. A value of 1 is used for execute
permission. See umask for default file permissions upon file creation. Chmod can also be
used to change the suid bit on files.
• clear - clear screen command
• cmp - compares two files for differences
• cp - copies on or more files. Recursive copying is one simple way of archiving part of a
directory structure.
• cpp - GNU C-compatible compiler preprocessor
• cvs - manages concurrent acces to files in a hierarchy. Stands for concurrent version
system. Is built on RCS. It stores successive revisions of files efficiently and ensures that
access to files by multiple developers is done in a controlled manner. Useful when many
developers are working on the same project.
• cut - selects characters or TAB-separated fields from lines of input and writes them to
standard output.
• date - displays or sets date and time.
• echo - write arguments to standard output. One use is to print out information about
environment variables.
• expr - utility evaluates an expression and displays the result.
• gcc - invoke C, C++ compiler.
• info - display system information.
• mkdir - create a directory
• passwd - change login password
• pwd - print absolute path of working directory. This is a shell builtin.