Linux Commands

BASIC COMMANDS

  1. PWD (print working directory) This is used to show the current directory a user is operating in
  2. Ls (List) This is used to show what files are in the directory the user is in
  3. Cd (change directory) This is used for changing the directory the computer user is on
  4. mkdir & rmdir Use the mkdir command when you need to create folder or a directory Use rmdir to delete a directory, but note that rmdir can only be used to delete empty directories. To delete a directory containing files, use rm.
  5. rm (remove) Use the rm command to delete files and directories but use the “rm –r” to delete just the directory
  6. Touch The touch command is used to create a file
  7. man & --help To know more about a command and how to use it, for example ‘’ man cd ‘’ shows the manual pages of the cd command.
  8. cp (copy) Use the cp command to copy files through the command line
  9. mv (move) Use the mv command to move files through the command line
  10. Locate The locate command is used to locate a file in linux system just like the search command in windows.
        INTERMEDIATE COMMANDS
    
  11. echo The ‘echo’ command helps us move data, usually text into a file.
  12. cat The cat command is used to display the contents of a file.
  13. nano, vi, jed Nano and vi are already installed text editors in the linux command line. The nano command is a good text editor that denotes keywords with colour and can recognize most languages.and vi is simpler than nano.
  14. df Use the df command to see available disk space in each of the partitions of your system.
  15. zip, unzip. Use the zip command to compress files into a zip archive, and unzip to extract files from zip archive