Commands are the instruction given to computer to perform some task
In Linux we use commands in Terminal to interact with computer
The following are some basic commands use in Linux and Unix
1 Mkdir : It is use make a directory (folder)
Syntax mkdir <folder name>
2 LS : It is use to list the all directories and ls
Syntax ls <enter>
3 Cd : It is use to go or enter into a directory
Syntax cd <folder name>
4 Touch : It is use to create a file
Syntax touch <file name>
5 CP : It is use to copy the contain of one file to another file
Syntax cp <file to copy> <file to paste>
Note : When the file to paste not exist it will create one with that name
6 MV : It is use to move file from one place to another place
Syntax mv <file to move> <place to paste>
7 Rm : It is use to remove file or delete permanently
Syntax rm <file name to delete>
8 Rmdir : It is use to delete empty directory
Syntax rmdir <directory to delete>
Note : To work this command a directory must be empty
9 Cat : It is use display the contain of a file
Syntax cat <filename>
10 Pwd: It is use to know in which directory you are in
Syntax pwd
11 Info : It is keyword which can give a info of particular command
Syntax info <command name>
12 Which : It is use know the location of the commands
Syntax which <command name>
13 Man : It is similar like info but give the essentials information
Syntax man <command name>
14 Nano : It is text editor of linux
Syntax nano or nano <file name>
15 History : It will display the thing which you have typed in terminal
Syntax history
Note : All commands of Linux mention above must use in upper case
Full form of some commands
Mkdir = Make Directory
Cd = Change Directory
Ls = List
Mv = Move
Rm = Remove
Cp = Copy
Pwd = Print Current working Directory
0 Comments