What are the common commands for Linux?

  

1. Man
I started with the "man" option because it is the most basic one in many ways. This command is the command you need to use when you need to know other commands.
Essentially, the "man” command gives a brief introduction to other commands in the online book. It gives you an idea of ​​the basic functions and usage of these command lines. You can even type “man man” directly to get the manual for “man”.
Any time you feel that you are not sure about a command line, you can find out exactly what this command can do by typing the "man + command".
2. ls
Another basic command is “ls”, which is used to display the contents of the directory. For example, “ls~” to display the content in your home directory.
3. pwd
To find out the directory you are working on now, type "pwd", which means "output working directory". For example, entering this command in the desktop directory will return “~/desktop”.
4. cd
To change the directory you are in, use this command. For example, to switch to the desktop directory, enter “cddesktop”.
5. mkdir
This command is used to create a new directory. For example, “mkdir pictures” will create a directory called “pictures” in the directory.
6. find and locate
To search for a file, you can use “find” or “locate”, the usage and function of the two are similar.
7. cp
If you want to create a copy of a file and rename it, you can use this command. Enter “cp cats dogs”, you will get a copy of the “cats” file named “dogs”; the file “cats” still exists.
8. mv
With the &mquo;mv” command, you can change the name of a file or move it to another folder, or both. Enter “mv cats dogs” will rename the file “cats” for “dogs”, enter “mv cats ~/desktop” will move the file “cats” to the desktop directory without renaming.
9. more
“more” Commands let you see more content on one screen at a time.
10. kill
You have to close a program, this is probably the most efficient way to come. Use the “ps” command to find the process ID you want to close, and enter “kill” to close the process.
11. sudo
Part of the reason Linux systems are so secure is that only root users have the privilege to install, uninstall, and other major changes. Ordinary users want to install a program, you can temporarily get the privileges of the root user through the sudo command. But you must enter the password of the root user.
Copyright © Windows knowledge All Rights Reserved