
Top 30 LINUX Commands Every Developer Must Know
23 July 2023In this tutorial we are going to learn the top 50 essential commands for the Linux operating system that every developer or student must know. If you are doing corporate work or a student, then Linux commands are most important and help you to use Linux in a better way. The commands listed below are some of the most useful and most frequently used Linux commands. Let’s get right into it!
TOP 30+ LINUX COMMANDS
1. pwd Command
The pwd command is used to display the location of the current working directory.
Syntax – pwd
2. ls command
The ls command list the files and directories in the current directory.
Syntax – ls
3. cd command
We use cd command to change the directory from the current working directory.
Syntax – cd dir_name
4 . mkdir command
This command helps to create a new directory.
Syntax – mkdir apalgorithm
5. rmdir command
The rmdir command is use to remove a directory.
Syntax – rmdir apalgorithm
6. mv command
The mv command is used to move or rename files or directories.
Syntax – mv dummy.txt
7. rm command
The rm command is used to remove files or directories.
Syntax – rm dummy.txt
8. chmod command
This command helps to change the permissions of a file or directory or also known as change mode.
Syntax – chmod 700 example.txt
9. chown command
The chown command is used for change the owner of a file or directory.
Syntax – chown new_owner file.txt
10. tar command
The tar command is used for create or extract compressed archive files.
Syntax – tar cf archive.tar file1 file2 file3
Linux Networking Command
11. ssh command
The ssh command helps to connect to a remote server securely thorugh the ssh portal.
Syntax – ssh user_name@host(IP/Domain_name)
12. mail command
The linux mail command helps to send mails from terminal. As a developer your mostly work are done through the terminal. So this helps a lot to send an email in emergency by the help of terminal.
Syntax – mail -s “Subject” <recipient address>
13.ip command
The ip command is used to assign an IP address, initialize an interface, disable an interface. It is the updated version of the ipconfig command.
Syntax – ip a or ip addr
14. ping command
The ping command helps to check the connectivity between two nodes, that is whether the server is connected. It is a short form of “Packet Internet Groper.
Syntax – ping <destination>
15. host command
The host command is used to display the IP address for a given domain name and vice versa. It performs the DNS lookups for the DNS Query.
Syntax – host <domain name> or <ip address>
Linux User Command
16. sudo command
It used as a prefix of some command that only superuser are allowed to run.
Syntax – sudo <instruction>
17. whoami command
This command helps to display the display the current user name.
Syntax – whoami
18. locate command
This command helps to locate any file on the system
Syntax – locate file.txt
19. uniq command
This command helps to remove duplicate lines from a file or input.
Syntax – uniq file.txt
20. useradd command
The useradd command is used to add a new user to the system.
Syntax – useradd APalgorithm
21. passwd command
The passwd command helps us to change the password for a user.
Syntax – passwd APalgorithm
22. mount command
The mount command helps us to connect an external device file system to the system’s file system.
Syntax – mount -t type <device> <directory>
23. . df Command
The df command is used to display the disk space used in the file system. It displays the output as in the number of used blocks, available blocks, and the mounted directory.
Syntax – df
24. time Command
The time command is used to display the time to execute a command.
Syntax – time
25. zcat command
The zcat command is used to display the compressed files.
Syntax – zcat <file name>
26. sleep command
The sleep command is used to hold the terminal by the specified amount of time. By default, it takes time in seconds.
Syntax – sleep <time>
27. locate Command
The locate command is used to search a file by file name. It is quite similar to find command; the difference is that it is a background process. It searches the file in the database, whereas the find command searches in the file system. It is faster than the find command. To find the file with the locates command, keep your database updated.
Syntax – locate <file name>
28. find Command
The find command is used to find a particular file within a directory. It also supports various options to find a file such as byname, by type, by date, and more. The following symbols are used after the find command:
(.) : For current directory name
(/) : For root
Syntax – find . -name “*.pdf
29. od command
The od command is used to display the content of a file in different, such as hexadecimal, octal, and ASCII characters.
Syntax: 1. od -b // Octal format 2. od -t x1 // Hexa decimal format 3. od -c // ASCII character format
30. comm command
The ‘comm’ command is used to compare two files or streams. By default, it displays three columns, first displays non-matching items of the first file, second indicates the non-matching item of the second file, and the third column displays the matching items of both files.
Syntax – comm
Thanks for reading. We hope that you like our article. If you like this post probably you might like my next ones, so please support me by subscribing my blog.
Suggested Readings!
Hey there, I’m Anshul Pal, a tech blogger and Computer Science graduate. I’m passionate about exploring tech-related topics and sharing the knowledge I’ve acquired. With two years of industry expertise in blogging and content writing, I’m also the co-founder of HVM Smart Solution. Thanks for reading my blog – Happy Learning!