1, multi-character command:
(1) Command 1: 2 a plurality of command execution command sequence, no logical connection, even if a wrong command, the command 2 is still performed.
(2) && Command 1 Command 2: Only 1 command executed correctly, the command will be successfully executed 2; 1 command is not executed correctly, the command will not be executed 2.
(3) || Command 1 Command 2: 1 command 2 command is not executed correctly only executed correctly, properly executed command 1, 2 command will not be executed.
2, the pipe character
Command 1 | Command 2: 1 the correct implementation of the results of the command of the operation target explicitly 2.
(1) results of split-screen display:
(2) the standard output ps -aux as standard input through grep
3, grep command
grep [options] "Search Content" filename
(1) Options:
-i: ignore case
-n: Add line numbers
-v: Reverse Lookup
--color = auto: keyword search display color
Display color: