Linux Commands & Usage

For beginner to Moderate

Linux Commands & Usage

Simple Commands to play with Linux.

  • pwd : Command to print present working directory
  • whoami : To check the currently logged-in user.
  • cd : To change the directory
  • ls : List the content of the present directory

Commands to check & Create the file content.

  • cat : Print the file to the terminal.
  • more : Can review the file percentage wise and we can go up in the file.
  • less : Same as more but here we can go to up and down direction.
  • vim/nano : These are the common text editor.
  • mkdir : Create new Directory.
  • touch : Create new file.
  • rm : Can remove the file and directory (For directory need to use -r option).
  • man : Command used for manual. You can find the documentation for the command.
  • sudo : to switch the normal user to super user (If you have the permission).