Linux Top 25 Commands
1. pwd Command
The pwd command is used to display the location of the current working directory.
2. mkdir Command
The mkdir command is used to create a new directory under any directory.
3. rmdir Command
The rmdir command is used to delete a directory.
4. ls Command
The ls command is used to display a list of content of a directory.
5. cd Command
The cd command is used to change the current directory.
6.touch Command
The touch command is used to create empty files. We can create multiple empty files by executing it once.
7. cat Command
The cat command is a multi-purpose utility in the Linux system. It can be used to create a file, display content of the file, copy the content of one file to another file, and more.
8. rm Command
The rm command is used to remove a file.
9. cp Command
The cp command is used to copy a file or directory.
10. mv Command
The mv command is used to move a file or a directory form one location to another location.
11. rename Command
The rename command is used to rename files. It is useful for renaming a large group of files.
12. head Command
The head command is used to display the content of a file. It displays the first 10 lines of a file.
13. tail Command
The tail command is similar to the head command. The difference between both commands is that it displays the last ten lines of the file content. It is useful for reading the error message.
14.tac Command
The tac command is the reverse of cat command, as its name specified. It displays the file content in reverse order (from the last line).
15. more command
The more command is quite similar to the cat command, as it is used to display the file content in the same way that the cat command does. The only difference between both commands is that, in case of larger files, the more command displays screenful output at a time.
16. less Command
The less command is similar to the more command. It also includes some extra features such as 'adjustment in width and height of the terminal.' Comparatively, the more command cuts the output in the width of the terminal.
17. su Command
The su command provides administrative access to another user. In other words, it allows access of the Linux shell to another user.
18.id Command
The id command is used to display the user ID (UID) and group ID (GID).
19. useradd Command
The useradd command is used to add or remove a user on a Linux server.
20. passwd Command
The passwd command is used to create and change the password for a user.
21. groupadd Command
The groupadd command is used to create a user group.
22. cat Command
The cat command is also used as a filter. To filter a file, it is used inside pipes.
23. grep Command
The grep is the most powerful and used filter in a Linux system. The 'grep' stands for "global regular expression print." It is useful for searching the content from a file. Generally, it is used with the pipe.
24. sed command
The sed command is also known as stream editor. It is used to edit files using a regular expression. It does not permanently edit files; instead, the edited content remains only on display. It does not affect the actual file.
25. tee command
The tee command is quite similar to the cat command. The only difference between both filters is that it puts standard input on standard output and also write them into a file.
Shubham Londhe #devops #DevOps #90dayschallenge