Linux is a very practical command line tool-general Linux technology-Linux technology and application information. The following is a detailed description. A very practical command line tool in Linux
1. Secondary CT: "I use secondary CT to complete many system management tasks that usually need to be executed repeatedly; you can use reverse CT to move files between my desktop computer and server."
2 lft: "lft is like a tracing route for a steroid. You can get much more information than tracing routes, for debugging connections or just to find out where the machine or system is ."
3 mc: "It is the best File Manager. Since I used Norton Commander on DOS, the conversion from DOS to Linux has become so easy ."
David Witham:
4 sdiff: "sdiff creates a human-friendly description of the differences between two text files. It splits the files on both sides and uses symbols to display only the rows in the file on the left. There are two different rows between the files, and the rows that exist only in the file on the right. Its results are much easier to read than diff's output ."
Jim Reem:
5. xargs: "xargs creates command lines from standard output data ."
6 for, while: "for, while is used to loop in a column of options, and complete certain actions for each option. '"
7 read: it is used to read standard input text lines into shell variables for future processing"
8 sort: Used to "sort text by letter or number; supports multiple sort keywords ."
9 uniq: Used to delete duplicate rows in the list"
10 tr: Used to "Convert or delete characters from text streams"
11 od: used to store binary files in decimal (or hexadecimal"
12 wc: Used to "count words in a statistical file"
13 top: "It seems like vmstat. get a view of the system running status and find out which process occupies all the memory ."
14 ps: "Understanding the details of a process"
Christian P. Roberts:
15 date: "It is useful to put the benchmark in the script for calling so as to output the current information"
16 env: "to solve the problem of dotfiles, use another account to view the environment variables ."
17 ln: "Ah ...... Soft links are essential for working on websites ."
18. mget: "It is not used a lot, but it is really good to use a single command to process multiple files ."
19 nslookup: what is the real name of a computer ...... Or "Is it safe to go there ?"
20 passwd: usually ask others to send this command to set a temporary password.
21 ps: usually used to connect to the "kill" command
22. uname: it is helpful to work on different computers because these computers may not be synchronized at the operating system level.
23 whoami: Yes, who am I ...... That is, "What identity do I use ?"
Understanding symbols in Linux
Aacble was published on | 1896 times. font size: Medium/large (15 comments) I want to comment
When I understand symbols in Linux, readers often send letters asking what the symbols in Linux commands mean. I believe that after reading the following content, you will understand them.
Some common symbols in Linux are not difficult to understand, and some are even the same as DOS.
1. wildcard characters: "*" and "?"
Like DOS, fuzzy operations can be performed with wildcards when we do not know the exact file name. "*" Can represent any character of any length, "?" Represents any character.
2. Escape Character: "\"
Unlike the DOS naming rules, the wildcard "*" and "?" It can be used in the file name.
If the file name to be operated contains these special characters, we can combine them. The following is a brief list of wildcards and regular expressions:
* Match all characters
? Match one character in a string
\ * Match the "*" Character
\? Match "?" Character
\) Matches ")" characters
Iii. Directory: "/" and "~" , ".", "..."
They respectively mean:
"/": Root directory (indicating path in the middle)
"~" : User root directory (the directory where the user logs on)
".": Current Directory
"..": Parent directory
4. Background execution: "&"
Sometimes it takes a long time for a user to execute commands, which may affect other tasks. The best way is to put it in the background for execution. The program running in the background can continue to be executed after the user logs out. When you want to run the command in the background, add "&" to the end of the command.
V. Pipelines and redirection: "|", ">", ">", and "<"
The redirection is to change the standard output identified by the command. ">" Can output the results to a file. The original content of the file will be deleted, and ">" will append the results to the file. The original content will not be deleted. "<" Can change the standard input. For example:
Cat data1.txt> data2.txt(add the data1.txt file to the end of data2.txt)
The pipeline "|" can output the command results to another command for input:
Man mtools | grep mbadblocks (search for sentences containing "mbadblocks" in mtools help)
Man mtools | less (import the Output Using pipelines to a tool called less. Less is a paging tool that allows you to view information page by page .)
6. Connection Symbol: ";"
When several commands need to be executed consecutively, we can place them in a row and separate them with ";" in the middle.
Mkdir myfile; cp/tmp/myfile.txt myfile(first create a directory myfile, then copy myfile.txt to the new directory)
Write point, stick point !!
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