first, work management
1.&: Throw the command directly into the background to execute
Eg:tar-jcv-f infor/t.tar.bz2 Infor/test1 & (Compress test1)
2,[Ctrl]-Z : Drop the current job in the background to pause
3,jobs: View the current background work status jobs [-LSR]
-L: Lists PID numbers in addition to the job number and command string
-S: Lists only the work that is being paused in the background
-R: Lists only the work that is running in the background
4,FG: The background work to the front desk to deal with FG%jobnumber
5.BG: Turn the post status into a running BG%jobnumber
6.Kill: Delete background work kill-signal%jobnumber
Signal: What kind of instruction does the delegate give to the next job?
-1: Re-read the configuration file of the parameter once
-2: Delegate with keyboard input [ctrl]-c the same operation
-9: Force deletion of a job immediately
-15: The normal way to terminate a work, default value
7,nohup: Offline execution work nohup [command and Parameters] & terminal background work
Ii. Process Management
1.PS: Process View PS Aux/ps-la: View all Processes
Ps-l: View your bash-related processes only
PS AXJF: Together with some process tree states
2.Top: Dynamic viewing process changes top [-D number] | Top [-BNP]
-D: followed by seconds, the entire process interface with a new number of seconds, default 5 seconds
-P: Specify some PID for viewing monitoring
3.Pstree: Show process Pstree in tree structure [-a| U] [-up]
-A: Connection between process trees has ASCLL character connection
-B: Connection between each process tree is UTF8-coded character connection
-P: Simultaneously lists the PID for each process
-U: Also lists the account number of each process
4.Killall-signal command name: Delete background work on command name
5. Nice: The newly executed command gives the new nice value nice [-n number] command
-N: followed by a number, the range of values is -20~19 (change process priority)
6.Renice: Nice re-adjustment of the existing process Renice [number] PID
PID: ID of a process
7. Free: View memory usage free [-b|-k|-m|-g] [-t]
b for Bite K stands for kb m for MB g for GB
8.uname: View system and kernel-related information uname [-asrmpi]
-A: List all information-S: System kernel Name
-r: Kernel version-p:cup type
9.Uptime: View system boot time and workload
10.netstat: Tracking network netstat [-ATUNLP]
-A: List all connections, listening, socket data
-T: List data for TCP network packets
-U: Lists data for UDP network packets
-N: The service name of the process is not listed and is displayed as a port number
-L: List the services currently being monitored by the network
-P: Lists the process PID for the network service
11.DMESG: Analyzing the information generated by the kernel DMESG | More
12.Vmstat: Detecting System Resource changes
III. Special Documents and procedures
1,fuser: Through the file (or file system) to identify the program that is using the file
Fuser [-UMV] File/dir
-U: Lists the owner of the process in addition to the PID of the process
-V: You can list the full relevance of each file to the program and the command
2.lsof: Lists the file name opened by the process lsof [-auu] [+d]
-u: followed by username, which lists files opened by the user-related process
+d: Follow the directory, that is, to find the file that has been opened under a directory
3.pidof: Find out the PID pidof [-SX] process name of an executing process
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Program Management-(Linux notes)