In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what are the common commands of the necessary Linux for operation and maintenance". In the course of the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Cd command
Cd is a very basic, frequently used command that is used to switch the current directory. Its parameter is the path of the directory to which you want to switch, either absolute or relative.
2. Ls command
Ls is also a command that is often used to view files and directories. List means that it has a lot of parameters. Here are some of my commonly used parameters.
3. Grep command
This command is often used to analyze a line of information, and if there is any information we need, the line is displayed. It is usually used with pipe commands to filter the output of some commands, and so on.
4. Find command
Find is a very powerful command based on lookup, and its use is relatively complex and has many parameters, so they will be classified and listed here.
5. Cp command
This command is used to copy files, meaning copy, and it can also copy multiple files to a directory at one time.
6. Mv command
This command is used to move files, directories, or renames, meaning move.
7. Rm command
This command is used to delete files or directories between remove.
8. Ps command
This command is used to select and output the running status of the process at a certain point in time, which means process.
9. Kill command
This command is used to send a signal to a job (% jobnumber) or to a PID (number), which is usually used with the ps and jobs commands.
10. Killall command
This command is used to send a signal to a process started by a command.
11. File command
This command is used to determine the basic data of the file after the file command, because the type of file under Linux is not divided by suffix, so this command is very useful to us, its use is very simple.
12. Tar command
This command is used to package files and is not compressed by default. If the appropriate parameters are specified, it will also call the appropriate compression programs (such as gzip and bzip) to compress and decompress.
13. Cat command
This command is used to view the contents of the text file, followed by the name of the file you want to view, and can usually be used with pipes with more and less, so that you can view the data page by page.
14. Chgrp command
This command is used to change the user group to which the file belongs, and it is very easy to use.
15. Chown command
This command is used to change the owner of the file in the same way as the chgrp command, except that the properties of the modified file are different and will not be detailed.
16. Chmod command
This command is used to change the permissions of the file.
18. Vim command
This command is mainly used for text editing, takes one or more file names as parameters, opens if the file exists, and creates a file with that file name if it does not exist. Vim is a very easy-to-use text editor, it has a lot of very useful commands, I won't say any more here. You can download detailed instructions on the common operations of vim here.
19. Gcc command
For a person who develops C programs with Linux, this command is very important. It is used to compile the source program files of the C language into executable programs. Because many parameters of gcc + are very similar to it, only the parameters of gcc are introduced here.
20. Time command
This command is used to measure the execution time of a command (that is, a program). It is very easy to use, just like entering a command, but you can add a time before the command.
This is the end of the content of "what are the common commands of the necessary Linux for operation and maintenance?" thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.