Skip to main content
Dat 2nd Sem Fall 2025
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Linux basic commands

Linux basic commands

  1. ls -la - list files and directories
  2. pwd - print working directory
  3. cd - change directory
  4. mkdir - make directory
  5. touch - create a file
  6. rm - remove file
  7. cp - copy file
  8. mv - move file
  9. cat - concatenate files and print on the standard output
  10. scp - secure copy
  11. ssh - secure shell
  12. chmod - change file mode bit`
  13. whoami - print effective userid
  14. id - print real and effective user and group IDs
  15. sudo - execute a command as another user
  16. su - substitute user identity
  17. nano - text editor
  18. man command - show manual for command
  19. clear - clear terminal
  20. echo - display line of text/string that are passed as an argument
  21. grep - search text. Example: grep -r "text" folder
  22. find - search files in a directory hierarchy
  23. apt-get - package manager for Debian based systems