Prepared by Vishwas
Unix Commands
Ø cal - Calendar 2000
Ø who - Who is logged on
Ø finger - Details of logged on users
Ø write - To send messages to users
Ø Ctrl+D - End of file
Ø mesg n - To deny talking
Ø mesg - To know the status
Ø Man - Help command
Ø cat - Display multiple files.
Ø clear - Clear screen.
Ø Date - Displays the system date.
Ø cd - Change directories.
Ø chmod - Change security mode of a
file or directory.
Ø cp - copy files from one directory to
another.
Ø mv - Move or rename files.
Ø cut - Select and extract columns or
fields from a file.
Ø echo - Display the specified
Arguments on the output device.
Ø find - Locate a file which meet the
search criteria.
Ø grep - Select lines or rows that
match a specified pattern.
Ø kill - End a process.
Ø ln - Creates link directories between
files,thereby allowing more than
one name for a file.
Ø lp - Print a file.
Ø ls - lists a directory’s contents,
including its files and
subdirectories
Ø mkdir - Make a new directory.
Ø passwd - Change your Unix password.
Ø pwd - Display your current path.
Ø rm - Remove a file
Ø rmdir - Remove a directory
Ø sh - Execute a shell script.
Ø sort - Sort and merge multiple files.
Ø trap - Executes a command when a
specified signal is received from
the operating system.
Ø Type cd and press enter to make sure you are
in your home directory.
Ø mkdir to make a new directory
Ø ls to see the contents in your directory.
Ø ll to see the contents in your directory.
Ø cat to create a new file.
Ø ctrl + z to save the file.
Chmod example:
using chmod
Ø Some environment variables
• HOME - System defined path for user’s
dir.
• PATH - List of path names for directories
• TERM - Terminal name
• PWD - Current Working Directory
• LOGNAME - Login name of the user