0% found this document useful (0 votes)
1 views5 pages

Unix Commands

The document provides a comprehensive list of Unix commands along with their functions, such as 'cal' for displaying the calendar and 'ls' for listing directory contents. It also includes examples of usage for commands like 'chmod' and mentions some environment variables like 'HOME' and 'PATH'. This serves as a quick reference guide for users to navigate and manage files in a Unix environment.
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)
1 views5 pages

Unix Commands

The document provides a comprehensive list of Unix commands along with their functions, such as 'cal' for displaying the calendar and 'ls' for listing directory contents. It also includes examples of usage for commands like 'chmod' and mentions some environment variables like 'HOME' and 'PATH'. This serves as a quick reference guide for users to navigate and manage files in a Unix environment.
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

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

You might also like