Professional Documents
Culture Documents
2.who am 1
This command prints the username associated with the
current effective user ID.
3.DATE
The date command is used to print out, the system’s
time and date information.
LINUX LAB
4.TIME
The time command reports how long it took for a
command to execute.
5.CAL
This command is used to display calendar.
6.PWD
Print the name of working directory.
LINUX LAB
7.LS
Lists the content of directory.
LINUX LAB
8.LS-L
Lists the total files in the directory and subdirectories,
the names of the file in the current directory, their
permissions, the size of file, and the last date of
modification.
LINUX LAB
9.GREP
Grep stands for “global regular expression print,”
processes text line by line and prints any lines which
match a specified pattern.
10.WC
Wc command prints a count of newlines, words, and
bytes for each input file.
11.WALL
Wall command writes a message to everyone’s wall.
LINUX LAB
12.WRITE
Write command send a message to other users.
13.SORT
Sort sorts the content of a text file, line by line.
LINUX LAB
14.Head Command
Head command makes it easy to output the first part
of files i.e prints first 10 lines.
15.Tail Command
Tail outputs the last part of file i.e prints last 10 lines of
file.
LINUX LAB
16.Pipe command
This command is used to send the output of one
program to another program for further processing.
17.Logout command
It is used to exit the session.
LINUX LAB
18.Wild Card
This feature helps us in searching file if we know some
part or letter of file using ls command.
19.CLEAR
The clear command is used to clear the screen.
LINUX LAB
2.CD
The cd command allows to change the current
working directory.
3.CAT>A
The cat > filename command helps to create file
LINUX LAB
4.CAT>>A
This command displays the content of a file.
5.CAT A
This command helps to append the contents of a
text file to the end of another text file.
LINUX LAB
6.COPY COMMAND
The cp command is used to make copies of files
and directories.
7.MOVE COMMAND
The mv command is used to move file or rename
file.
LINUX LAB
8.RM COMMAND
The rm command removes (deletes) files.
9.RMDIR
The rmdir command remove the directory.
LINUX LAB
10.Tree Command
Tree lists the contents of a directories in a tree-like
format.
LINUX LAB
CHMOD
Chmod command is used to change the
permissions of files or directories.
LINUX LAB
SHELL SCRIPT
LINUX LAB