60 Essential Linux Commands

  1. List the files and folders in the current directory.
  2. Change the present directory.
  3. pwd: Display the path of the current working directory.
  4. Create a new directory using the mkdir command.
  5. rmdir: Remove an empty directory.
  6. touch: create a new empty file or update the timestamp of an existing file.
  7. Copy files and directories.
  8. mv command: move or rename files and directories.
  9. rm: remove files and directories.
  10. cat: concatenate files and print on standard output.
  11. show the content of the file by pages.
  12. Less: Similar to more, but offers additional features.
  13. head: display the first few lines of a file.
  14. tail: display the last few lines of a file.
  15. print a string on the standard output.
  16. grep: Search for matching patterns in a file.
  17. Search for files and directories.
  18. Word count: counting the number of lines, words, and characters in a file.
  19. sort: Sort the lines of the file.
  20. Uniq: remove duplicate lines from a file.
  21. tar: create, view, or extract tar archive files.
  22. gzip: compress file.
  23. gunzip: decompressing files.
  24. zip: Create, view, or extract zip archive files.
  25. unzip: decompressing zip files.
  26. secure remote login to another computer using SSH.
  27. scp: Securely copy files and directories to another computer.
  28. wget: download files or web pages.
  29. curl: Sending HTTP requests and retrieving responses through URLs.
  30. ping: testing the network connection with another computer.
  31. ifconfig is used to display and configure network interfaces.
  32. Netstat: Displays information about network connections, routing tables, and network interfaces.
  33. display and configure IP routing table.
  34. iptables: Setting up firewall rules on Linux.
  35. Display the status of processes.
  36. top: Display real-time system resource usage.
  37. terminate a process.
  38. Command uname displays system information.
  39. df: Display the usage of disk space.
  40. Display the disk usage of directories or files.
  41. mount: Attach a file system.
  42. Unmount: Remove file system.
  43. chmod: Change the permissions of a file or directory.
  44. chown: Change the owner of a file or directory.
  45. change the group ownership of a file or directory.
  46. Switch user identity.
  47. sudo: execute command as a superuser.
  48. Change user’s password.
  49. View command history.
  50. alias: Create a command alias.
  51. Show or set the system date and time.
  52. Show the currently logged-in user.
  53. uptime: displays the system’s running time and load.
  54. power off the computer.
  55. restart the computer.
  56. ifup: Start the network interface.
  57. ifdown: disable the network interface.
  58. service: Start, stop or restart system services.
  59. Crontab: create, edit, or view scheduled tasks.
  60. Display command history.
bannerAds