Basic Commands

  1. echo: Prints text to the terminal.
  2. clear: Clears the terminal screen.
  3. CTRL + L: A keyboard shortcut to clear the terminal screen, similar to the clear command.
  4. date: Displays the current date and time.
  5. history: Shows the list of previously entered commands in the terminal.

File and Directory Manipulation

  1. pwd: Prints the current working directory.
  2. ls: Lists files and directories in the current directory.
  3. file: Determines the file type.
  4. cd: Changes the current directory.
  5. mkdir: Creates a new directory.
  6. rmdir: Removes an empty directory.
  7. touch: Creates an empty file or updates the timestamp of an existing file.
  8. >: Redirects output to a file (overwriting it if it exists).
  9. >>: Appends output to the end of a file.
  10. tee: Redirects output to both a file and the terminal.
  11. nano or vim: Text editors used in the terminal.
  12. cat: Displays the contents of a file.
  13. less: Views the content of a file one page at a time.