Linux Survival Kit

in #knowledge7 years ago

If you are new to the Linux below are some of the basic commands that you can find useful.
1_3EDAuG1UYe5W-yOx90Hn0Q.jpeg

man

man command is used for showing the manual for any command.
Ex- man man , man mkdir, man cd

pwd

pwd command is used to show which directory you are currently in.

cd

cd command is used to change the directory.
Ex -

  • Use "cd .." to go one directory above the corking directory
  • Use "cd ../.." to go two steps above the working directory and so on
  • Give full path of the directory you want to go to after cd to change the directory

ls

ls command is used to show all the files and folders under the current directory.

mkdir

mkdir command is used to create a new directory
Ex-

  • mkdir myNewFolder it will create a new folder named "myNewFolder" under the current working directory
  • if you want to create a new directory under some other directory give the complete directory path and then the new directory name

clear

as the name suggest clear command is used to clean the screen (your terminal screen).

Cheers !!