Top 50 Linux Commands You Must Know

Bharath S🎯
2 min readJul 21, 2022

--

Linux Logo
  1. ls β€” view contents of directory (list)
  2. pwd β€” path of the current directory
  3. cd β€” change directory
  4. mkdir β€” make new directory
  5. mv β€” move files / rename files
  6. cp β€” copy files
  7. rm β€” remove files
  8. touch β€” create blank new file
  9. rmdir β€” delete directory
  10. cat β€” list content of file to terminal
  11. clear β€” clear terminal window
  12. echo β€” move data into a file
  13. less β€” Shows file’s contents one screen at a time
  14. man β€” show manual of Linux commands
  15. sudo β€” enables you to perform tasks that require administrative or root permissions
  16. top β€” task manager in terminal
  17. tar β€” used to archive multiple files into a tarball
  18. grep β€” used to searching words in specific files
  19. head β€” view first lines of any text file
  20. tail β€” view last lines of any text file
  21. diff β€” compares the contents of two files line by line
  22. kill β€” used for killing unresponsive program
  23. jobs β€” display all current jobs along with their statuses
  24. sort β€” is a command line utility for sorting lines of text files
  25. df β€” info about system disk
  26. du β€” check how much space a file or directory takes
  27. zip β€” to compress your files into a zip archive
  28. unzip β€” to extract the zipped files from a zip archive
  29. ssh β€” a secure encrypted connection between two hosts over and insecure network
  30. cal β€” shows calendar
  31. apt β€” command line tool for interaction with packaging system
  32. alias β€” custom shortcuts used to represent a command
  33. w β€” current user info
  34. whereis β€” used to locate the binary, source, manual page files
  35. whatis β€” used to get one-line man page description
  36. useradd β€” used to create a new user
  37. passwd β€” used to changing password of current user
  38. whoami β€” print current user
  39. uptime β€” print current time when machine starts
  40. free β€” print free disk space info
  41. history β€” print used commands history
  42. uname β€” print detailed information about your Linux system
  43. ping β€” to check connectivity status to a server
  44. chmod β€” to change permissions of files and directories
  45. chown β€” to change ownership of files and directories
  46. find β€” using find searches for files and directories
  47. locate β€” used to locate a file, just like the search command in Windows
  48. ifconfig β€” print ip address stuff
  49. ip a β€” similar to ifconfig but shortest print
  50. finger β€” gives you a short dump of info about a user

--

--

Bharath S🎯
Bharath S🎯

Written by Bharath S🎯

Writer | Pragmatist | Tech-Evangelist | Click on https://thebharaths.com/articles to taste one-of-its-kind insightful articles never found elsewhere!

No responses yet