Red Hat Exam third record

  Today, the second chapter of command over learning, learning to command as follows:

2.4 system state detection command

1. ifconfig: NIC configuration for acquiring the network status information, the format of "the ifconfig [Network Device] [parameter]";

2. uname: for viewing system kernel and version information in the format of "uname [-a]";

3. uptime: View the system load information in the format of uptime;

4. free: display current system memory usage information, the format of "free [-h]";

5. who: Check sign information of the current user terminal host, the format of "WHO [parameter]";

6. last: Log in to view a record of all systems in the format "last [parameters]";

7. history: Display the command history executed in the format of "history [-c]";

8. sosreport: Gather system configuration and schema information and diagnostic output document format sosreport.

 

2.5 working directory command

1. pwd: display the user's current working directory is located, the format of "pwd [Option]";

2. cd: switching the working path, the format of "CD [directory name]";

  cd .. go back one level

  enter the user's home directory cd ~

  cd - where the return on a directory

3. ls: Displays the file directory information in the format of "ls [options] [file]."

 

2.6 text file editor command

1. cat: view plain text files (less contents), the format of "cat [option] [file]";

2. more: view plain text files (more content), the format is "more [options] [file]";

3. head: see the plain text of the document before the N line, the format is "head [options] [file]";

  Example: head 20 filename -n (20 lines before viewing the file)

4. tail: View the N-line plain text documents or continue to refresh the content in the format of "tail [options] [file]";

  Example: tail -n 20 filename (20th row view files)

  Example: tail -f / var / log / message (real-time view log information)

5. tr: replace characters in the text file, the format of "TR [original character] [target character]";

6. wc: the number of lines of specified text, words, bytes, the format of "TR [parameter] Text";

7. stat: specific store information and time to review documents and other information, in the format of "stat file name";

8. cut: extracting columns of text characters, the format of "Cut [parameter] Text";

9. diff: diff plurality of text files, the format of "diff [parameter] file."

2.7 directory management commands

1. touch: Create a blank file or set of files the time, the format is "touch [options] [file]";

2. mkdir: Create a blank directory, in the format "mkdir [options] directory";

3. cp: copy a file or directory, in the format "cp [options] source destination file";

4. mv: Cut file or rename the file, the format is "mv [options] source [destination path | destination file name]";

5. rm: delete a file or directory, in the format "rm [options] files";

6. dd: to copy the specified data blocks according to the size or number or convert file format "dd [parameter]";

7. file: file type view of the format of "file filename";

 

2.8 compression and packing the search command

1. tar: play the file compression or decompression, the format of "tar [options] [file]";

2. grep: perform a keyword search in the text, and display the results match the format of "grep [options] [file]";

3. find: in accordance with the specified criteria to find the file, the format is "find [Search Path] Looking operating conditions."

 

Here are some study notes:

Guess you like

Origin www.cnblogs.com/lelegon/p/12319238.html