0% found this document useful (0 votes)
51 views1 page

17BEC028 Os Practical - 1

This document provides descriptions of common Linux commands: - It lists commands like rmdir, rm, sh, cal, cd, chmod, clear, cmp, cp, cpp that can remove directories and files, change directories and permissions, clear the screen, compare files, copy files, and invoke compilers. - It also describes version control tools like cvs that manage concurrent access to files from multiple developers working on a project, as well as commands to select text with cut, display or set the date and time with date, write to standard output with echo, evaluate expressions with expr, compile code with gcc, display info with info, and create directories and view the working directory with mkdir and pwd.

Uploaded by

Randhir Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

17BEC028 Os Practical - 1

This document provides descriptions of common Linux commands: - It lists commands like rmdir, rm, sh, cal, cd, chmod, clear, cmp, cp, cpp that can remove directories and files, change directories and permissions, clear the screen, compare files, copy files, and invoke compilers. - It also describes version control tools like cvs that manage concurrent access to files from multiple developers working on a project, as well as commands to select text with cut, display or set the date and time with date, write to standard output with echo, evaluate expressions with expr, compile code with gcc, display info with info, and create directories and view the working directory with mkdir and pwd.

Uploaded by

Randhir Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like