Top 50 Linux commands that are commonly used by users

These commands cover a wide range of tasks and are essential for managing files, processes, users, networks, and system configurations in a Linux environment.

  1. ls: List directory contents.
  2. cd: Change the current directory.
  3. pwd: Print the name of the current directory.
  4. mkdir: Create a new directory.
  5. rm: Remove files or directories.
  6. cp: Copy files or directories.
  7. mv: Move or rename files or directories.
  8. cat: Concatenate and display file content.
  9. less: Display file content one page at a time.
  10. head: Display the beginning of a file.
  11. tail: Display the end of a file.
  12. grep: Search for patterns in files.
  13. chmod: Change file permissions.
  14. chown: Change file ownership.
  15. sudo: Execute a command with superuser privileges.
  16. su: Switch to another user account.
  17. df: Display disk space usage.
  18. du: Display disk usage for files and directories.
  19. find: Search for files and directories.
  20. locate: Find files by name.
  21. tar: Archive files.
  22. gzip: Compress or decompress files.
  23. zip: Package and compress files.
  24. unzip: Extract files from a ZIP archive.
  25. ssh: Connect to a remote server securely.
  26. scp: Securely copy files between hosts.
  27. wget: Download files from the web.
  28. curl: Transfer data from or to a server.
  29. ps: Display information about running processes.
  30. kill: Terminate processes.
  31. top: Display real-time system information.
  32. uptime: Display system uptime.
  33. uname: Print system information.
  34. ifconfig: Display network interface configuration.
  35. ping: Test network connectivity.
  36. traceroute: Trace the route to a remote host.
  37. netstat: Display network connections, routing tables, and interface statistics.
  38. iwconfig: Configure wireless network interfaces.
  39. iptables: Configure firewall rules.
  40. route: View and manipulate the IP routing table.
  41. adduser: Create a new user account.
  42. usermod: Modify user account properties.
  43. passwd: Change user password.
  44. groupadd: Create a new group.
  45. groups: Display group membership for a user.
  46. w: Display who is logged in and what they are doing.
  47. last: Display a list of last logged-in users.
  48. history: Display command history.
  49. date: Display or set the system date and time.
  50. cal: Display a calendar.

ls: List directory contents

cd: Change the current directory

pwd: Print the name of the current directory

mkdir: Create a new directory

rm: Remove files or directories

tail: Display the End of a File

man – Manual Pages

The man command is used to display the manual pages of other commands

locate: Find files by name

sudo: Execute a command with superuser privileges

netstat: Display network connections, routing tables, and interface statistics

mv: Move or rename files or directories

Before:

After:

pwd: Print the name of the current directory

route: View and manipulate the IP routing table

iptables: Configure firewall rules

touch: create a new empty file

history: Display command history

For more information:-

How to Change the Permissions of Files and Directories in Ubuntu?

What is chmod command in Linux ?

How to Check Project Size in Linux

Hopefully, This blog will help you …!!!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x