Linux Server Administrator Prerequisites Linux command TOP5

Source: Internet
Author: User

The interface-friendliness, graphics performance, and attachment tools of the Linux desktop environment have evolved dramatically, but the Linux server has yet to reach this step. As a system administrator, you must be proficient in Linux commands. There are many Linux commands, and some of the top commands are important for implementing instant management of servers and data centers. Each of the following commands has its own role, and we think we should add them to the Administrator's Toolkit. With the enrichment of management experience on Linux servers, and the use of commands around them, you will find new ways to simplify management tasks and apply them to some tips. The CD command CD command should really be considered the basic command for Linux service Management, and the role of the CD command is to move the management directory structure. For example, to move your home directory into the ~/downloads directory, you need to enter the following command: CD ~/downloads. If your home directory is ready to complete, just type in the command and enter it. The CD command works well when you need to go back to the previous directory. For example, you are in the downloads directory, you want to fallback to the directory ~/, simply execute the command CD: /You can return to this directory. When you need to return a multilevel catalog, add more in the command: To For example, when you work in multiple folders, use the CD. /.. /.. /command to go back to the ~/downloads directory from ~/downloads/a/b/c. CP Command This is another top Linux command from the server administrator, which allows you to copy files and directories using the following: CP [OPTION] source destination to copy files from ~/filea to ~/downloads/, which can be done by executing the CP command: CP ~/filea ~/downloads. The copied files can also be renamed during the copy process: to copy files from ~/filea to ~/downloads/and rename them to Fileb, you can execute the commands as follows: CP ~/filea ~/downloads/fileb. The most critical parameter in the CP command is-P. This parameter preserves the properties of the file including the pattern, owner, and timestamp. Execute the command as follows: Cp-p ~/filea ~/downloads/fileb can take advantage of this parameter. The crontab command Linux crontab command allows management to create scheduled tasks on the system, using the following method: Crontab-u user file or Crontab-u user [OPTION] the best way to use the crontab command is with parameters such as: l  -l--Show user current crontab work L  -e--Edit User Current crontab work L  -r--Remove user current crontab work for example, need to edit Jlwallen work for user crontab, execute command: Crontab-u jlwallen–e You will see that the user's crontab work will be opened in the default text editor. Edit your work as needed and save the file. You can then use the following command: Crontab-u jlwallen-l shows the user's crontab work. The grep command grep command is used to print a matching line, which in many cases applies to the following: grep [OPTIONS] PATTERN [FILE] Linux grep command helps administrators to specify a specific line, for example, The string wlan0 is placed in a configuration file called wireless, and it can be difficult for the human to extract the string. With the Linux command, you can: Grep-n Wlan0 wireless when using the-n parameter, the grep command displays matching lines and line numbers. You can also use the-e parameter, where the command will treat pattern as a regular expression. Iptables commands on-demand hardware is protecting your network, but that doesn't mean you don't need to understand the most effective security tool--iptables in the data center area. This is a fairly complex Linux command that takes a lot of time to master, and the basic structure of this command is: iptables [-t table] [OPTION] chain Rule-specification want to really understand how to use iptables, You must first understand the chain and the table. If you don't know the chain and how it relates, start with the man iptables command. We have been trying to keep the original ... Please do not leave a silent, quietly take away. I original, you original, our content world will be more exciting!

TechTarget China original content, original link: http://www.searchsv.com.cn/showcontent_92034.htm
©techtarget China: http://www.techtarget.com.cn

Linux Server Administrator Prerequisites Linux command TOP5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.