Top 100 Linux Useful Command for System Administrator

Top 100 Linux Useful Command for System Administrator

1. ls: List files and directories. 2. cd: Change the working directory. 3. pwd: Print the current working directory. 4....

3 min read
  1. ls: List files and directories.
  2. cdChange the working directory.
  3. pwd: Print the current working directory.
  4. catConcatenate and display file content.
  5. touch: Create an empty file or update the timestamp of an existing file.
  6. rmRemove files or directories.
  7. cpCopy files or directories.
  8. mv: Move or rename files or directories.
  9. mkdirCreate a new directory.
  10. rmdir: Remove an empty directory.
  11. findSearch for files and directories.
  12. grep: Search for patterns in files or output.
  13. psList running processes.
  14. kill: Terminate processes.
  15. top: Display system resource usage and running processes.
  16. df: Display disk space usage.
  17. duEstimate file and directory space usage.
  18. free: Display memory usage.
  19. chmod: Change file permissions.
  20. chown: Change file ownership.
  21. tar: Archive files and directories.
  22. gzipCompress files.
  23. gunzip: Decompress files.
  24. sudo: Execute a command with superuser privileges.
  25. nano or vimText editors for quick edits in the terminal.
  26. ssh: Securely connect to a remote server.
  27. scp: Copy files between local and remote systems over SSH.
  28. wget: Download files from the web.
  29. curlTransfer data with URLs.
  30. ping: Test network connectivity to a host.
  31. ifconfig: Network interface configuration (if using traditional networking).
  32. ip: Network interface configuration (if using modern networking with iproute2).
  33. netstat: Network statistics.
  34. route: Show or manipulate the IP routing table.
  35. hostname: Display or set the system’s hostname.
  36. history: Display command history.
  37. aliasCreate command aliases.
  38. date: Display or set the system date and time.
  39. calDisplay a calendar.
  40. shutdown: Shutdown or reboot the system.
  41. rebootReboot the system.
  42. who: Show who is logged on.
  43. tar: Archive files and directories.
  44. unzipExtract compressed files in ZIP format.
  45. useraddAdd a new user account.
  46. usermodModify user account properties.
  47. userdelDelete a user account.
  48. groupadd: Add a new group.
  49. groupmodModify group properties.
  50. groupdel: Delete a group.
  51. passwd: Change user password.
  52. su: Switch to another user account.
  53. sudo: Execute a command with superuser privileges.
  54. chpasswdChange passwords in batch.
  55. cronSchedule tasks to run at specified times.
  56. at: Schedule a task to run once at a specific time.
  57. shutdown: Shutdown or reboot the system at a specified time.
  58. df: Display disk space usage.
  59. du: Estimate file and directory space usage.
  60. free: Display memory usage.
  61. top: Display system resource usage and running processes.
  62. kill: Terminate processes.
  63. ps: List running processes.
  64. tar: Archive files and directories.
  65. gzip: Compress files.
  66. gunzip: Decompress files.
  67. find: Search for files and directories.
  68. grep: Search for patterns in files or output.
  69. sed: Stream editor for text manipulation.
  70. awk: Text processing tool for extracting and manipulating data.
  71. sort: Sort lines in text files.
  72. uniq: Filter adjacent duplicate lines from text.
  73. wc: Count lines, words, or characters in a file.
  74. head: Display the beginning of a file.
  75. tail: Display the end of a file.
  76. cut: Remove sections from each line of files.
  77. diff: Compare files line by line.
  78. scp: Copy files between local and remote systems over SSH.
  79. rsync: Synchronize files and directories between systems.
  80. mount: Mount a filesystem.
  81. umount: Unmount a filesystem.
  82. fdisk: Partition table manipulator for hard drives.
  83. mkfs: Create a filesystem on a partition.
  84. dd: Convert and copy files.
  85. lspci: List PCI devices.
  86. lsusb: List USB devices.
  87. lsblk: List block devices.
  88. htop: Interactive process viewer.
  89. ncdu: Disk usage analyzer with an interactive interface.
  90. iftop: Display bandwidth usage on an interface.
  91. iptraf: Interactive color-based IP LAN monitor.
  92. screen or tmux: Terminal multiplexers for multiple sessions.
  93. which: Show the full path of shell commands.
  94. echo: Print a message.
  95. uptime: Show how long the system has been running.
  96. watch: Execute a command repeatedly and display the results.
  97. history: Display command history.
  98. hostname: Display or set the system’s hostname.
  99. basename: Remove directory and suffix from filenames.
  100. dirname: Remove non-directory suffix from filenames.