Professional Documents
Culture Documents
COMMAND
S
LS
• List the contents of the folder from which it runs.
• Syntax: ls
• Example:
ls –l
ls -a
MKDIR
• The “mkdir” (Make directory) command create a
new directory.
Example: mkdir -p
CAT
• It is used to create a file with content.
• Example: cp –rv
CD
• It is used for changing the directory.
• Syntax: cd dir_name
• Example: cd student
MV
• The “mv” command moves a file from
one location to another location.
• Syntax: whoami
BC
• It means the basic calculator, used for the basic
calculations.
• Syntax: bc
PASSWD
• It is used for changing the passwd.
• Syntax: passwd
DATE
• Itprint the current date and on the
time standard output & can further be
set.
• Syntax: date
• Syntax: clear
PWD
This command is used to check present working
directory in linux operating system.
Syntax: pwd
Example: /bin/pwd
RM -RF
This command is used to remove files and
directory in linux operating system.
Syntax: rm –rf
TAIL
• It prints the last 10 lines of the given file.
• Syntax: du
DF
• Report disk usages of file system.
• Syntax: df