Professional Documents
Culture Documents
Syntax- who
Who am I -> This is used to display the name of current user only.
Syntax- who am i
cat -> This command is used to show the content of the file. Syntax- cat file name Cp-> This command is used to copy the content of one file to another.
Syntax- cp source file destination file
Ln-> This command is used to create a link between two files so that if
updations occur in first file then copied file also updated. Syntax- ln f1 f2
Ls l-> This command is used to get the information of all the files and
directory in a long listed way. Syntax- ls l
Ls a-> This command is used to get the details of hidden files also.
Syntax- ls a
Date-> This command is used to display the current date of the server.
Syntax- date
Sort -> This command is used to sort the file but according to ASCII
values. Syntax- sort file name
Sort n -> This command is used to sort the content of file according
to numbers i.e not with ASCII values. Syntax- sort n file name
Sort nr -> This command is used to sort the file in descending order.
Syntax- sort nr file name
Head-> This command is used to print starting column of the data that
is to be entered. Syntax- head 2 file name
Tail-> This command is used to print last column of the data that is to
be entered Syntax- tail 2 file name
Ps-> This command is used to get the list of all process that are
currently running.
Grep -> This command is used to return the no of rows which satisfy
the given condition. Syntax- grep condition file
Grep v -> This command is used to return the rows which do not
satisfies the condition. Syntax- grep v condition file