Top 50 Linux Commands You Must Know

Top 50 Linux Commands You Must Know

1. ls – view contents of directory (list)

2. mv – move files / rename files

3. rm – remove files

4. cp – copy files

5. cd – change directory

6. pwd – path of the current directory

7. mkdir – make new directory

8. rmdir – delete directory

9. man – show manual of Linux commands

10. touch – create blank new file

11. cat – list content of file to terminal

12. clear – clear terminal window

13. top – task manager in terminal

14. echo – move data into a file

15. less – Read text file one screen at a time

16. sudo – enables you to perform tasks that require administrative or root permissions

17. tar – used to archive multiple files into a tarball

18. grep – used to searching words in specific files

19. df – info about system disk

20. du – check how much space a file or directory takes

21. zip – to compress your files into a zip archive

22. unzip – to extract the zipped files from a zip archive

23. head – view first lines of any text file

24. tail – view last lines of any text file

24. diff – compares the contents of two files line by line

26. kill – used for killing unresponsive program

27. jobs – display all current jobs along with their statuses

28. sort – is a command line utility for sorting lines of text files

29. ssh – a secure encrypted connection between two hosts over and insecure network

30. apt – command line tool for interaction with packaging system

31. cal – shows calendar

32. alias – custom shortcuts used to represent a command

33. w – current user info

34. ip a – similar to ifconfig but shortest print

35. whereis – used to locate the binary, source, manual page files

36. whatis – used to get one-line man page description

37. useradd – used to create a new user

38. passwd – used to changing password of current user

39. whoami – print current user

40. uptime – print current time when machine starts

41. free – print free disk space info

42. history – print used commands history

43. uname – print detailed information about your Linux system

44. ping – to check connectivity status to a server

45. finger – gives you a short dump of info about a user

46. ifconfig – print ip address stuff

47. chmod – to change permissions of files and directories

48. chown – to change ownership of files and directories

49. find – using find searches for files and directories

50. locate – used to locate a file, just like the search command in Windows

This Post Has 2 Comments

Leave a Reply