Linux system Variable view command
PRINTENV (print environment abbreviation)
Type command
See if the command is built-in or external (external command can see the path)
Whatis command
Simple Explanation of command function
PWD command
Print the current working directory (print working dirctory)
Route command
View Gateway Commands
Help Information explained
[content] means that "content" inside can be omitted
[Content 1 | Content 2] means two select one
< content > Indicates the parameters that must be written
Switching between a Linux task and a front desk
Shell support function control, with the following command to implement the front and rear switch:
1. command& let the process run in the background
2. Jobs view the process running in the background
3. FG%n Let the background run process N to the foreground
4. BG%n let process n Go backstage
5. Kill%n Kills Job
PS: "n" is the job number you see for the jobs command, not the process number.
FG, BG, Jobs, &, CTRL + Z are all related to system tasks, although it is not necessary to use these commands, but learning is also very practical.
First, & is most often used
This is used at the end of a command, you can put this command in the background to execute
Two, CTRL + Z
You can put a command that is executing in the foreground in the background and pause
Third, Jobs
See how many commands are currently running in the background
Iv. FG
Move commands in the background to the foreground to continue running
If there are multiple commands in the background, you can use FG%jobnumber to bring up the selected command,%jobnumber is the ordinal (not PID) of the command being executed in the background through the jobs command.
V. BG
A command that pauses in the background changes to continue execution
If there are multiple commands in the background, you can use BG%jobnumber to bring up the selected command,%jobnumber is the serial number (not the PID) of the command being executed in the background through the jobs command.
This article is from the "Horic xx wo" blog, please be sure to keep this source http://zhlqx.blog.51cto.com/8430475/1532994