Shell Preparation
1. Identify the shell type
Echo
Echo $BASH
Echo $SHELL
The top three command results are:
/bin/bash
2, Terminal common operation
A, delete a single character c+h or BACKSPACE key
B. Delete single word c+w
C, delete a single row c+u
d, repeat edit command line arrowup or Arrowdown
E, interrupt command execution C+c
3. Switch to root user
A, after the SU command, enter the root password
b, sudo command, enter the user password, the user who needs to execute the command in the sudo group
4. Document View
A. Using Man
1), User command
2), System call
3), sub-routines
4), Equipment
5), file format
6), Games
7), other
8), System Management
9), kernel
10), New
b, apropos keyword search, you can not complete accompany; Whatis keyword search, exact match;
C, permissions
5. Shell (Command interpreter and programming language)
A, file name generation (wildcard characters and fuzzy file references)
B, auto-completion (command, file name, directory name, variable name, etc. complete)
C, device-independent I/O (I/O redirection, devices and files)
D, Job control (run multiple jobs, can switch between jobs)
E, Shell functions (interpreter, interpreted language, Shell function)
6. Inter-process communication
A, pipe, one output as another input
b, filter, the reasonable content output
7. System Management
A, set up the system
B. Install the SOFTWARE
C. Edit the configuration file
D, service management, etc.
8. Many use tools (sort grep, etc.)
"Linux command, editor and Shell Programming" Third Edition study notes---003