Linux Rookie Learning Path >>7

Source: Internet
Author: User

Unit Seventh ***************
# # 1 # # Process definition
Process is the work that the CPU does not complete
# # 2 # # PS command
Ps
All processes running in a//shell
X//All processes not in Shell re-run
U//View process user Information
L//Show process details
F//Full information abbreviation
E//Show all processes in the current user shell
PS Ax-o%cpu,%mem,user,group,comm,nice,pid//Specify some information for the display process
%CPU//Show process CPU load
%men//Show process memory load
User//Process users
Group//Process groups
Comm//Process Name
Nice//Process priority
PID//Process ID

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/5A/wKioL1fyYZGSWLFbAAB5KzUKzZo578.png-wh_500x0-wm_3 -wmp_4-s_1985618077.png "title=" capture. PNG "alt=" Wkiol1fyyzgswlfbaab5kzukzzo578.png-wh_50 "/>

PS ax-o%cpu,commm--sort <+|-%cpu> <+|-%men>//Sort by process information
+//Positive order
-//Reverse

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/88/5E/wKiom1fyYeLyLblFAAAmM8Dy-2o069.png-wh_500x0-wm_3 -wmp_4-s_451093269.png "title=" capture. PNG "alt=" Wkiom1fyyelylblfaaamm8dy-2o069.png-wh_50 "/>

# # 3 # # Process Priority
1. Process Priority range: 20-19
2. Priority view: PS Ax-o pid,nice,comm650) this.width=650; "Src=" http://s1.51cto.com/wyfs02/M02/88/5A/ Wkiol1fyykssh8ngaaaxn94a5vw418.png-wh_500x0-wm_3-wmp_4-s_2703812183.png "title=" capture. PNG "alt=" Wkiol1fyykssh8ngaaaxn94a5vw418.png-wh_50 "/>
3, specify a priority to open the process nice-n priority number Process name
Example: Nice-n-5 VIM &//Turn on VIM and assign priority to-5

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/88/5E/wKiom1fyatyyTvUVAACQZSBRF-Y916.png-wh_500x0-wm_3 -wmp_4-s_3108767668.png "title=" capture. PNG "alt=" Wkiom1fyatyytvuvaacqzsbrf-y916.png-wh_50 "/>

4. Change process priority: RENICE-N Priority digital Process PID
Example: Renice-n-5 1806//change PID to 1806 process priority is-5

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/5A/wKioL1fyavqixSEPAADAvzhn73c486.png-wh_500x0-wm_3 -wmp_4-s_3427096307.png "title=" capture. PNG "alt=" Wkiol1fyavqixsepaadavzhn73c486.png-wh_50 "/>

# # 4 # # # # # front and back calls to processes in the environment
Jobs//View the process of being driven back into the environment
CTRL + Z//Take the terminal process into the background
FG//Back up the background process to the foreground
BG//Run the background paused process
Comm &//Let commands run directly in the background

# # 5 # # signal level
1. Common signal levels
1//Reload Configuration
2//delete process in-memory data
3//Remove data from mouse in memory
9//forcibly delete a single process
15//Normal shutdown process
18//Running a paused process
19//Pause a process
20//Get the process into the background
How to use: Kill-signal Process PID
Remove multiple processes with the same name: Killall-Signal Process name
Turn off all processes for student users: pkill-u student-Signal
# # 6 # # User Login Audit
1
w//See what current users currently use the system
W-f//See Where to use
2
Last//Production see User Login Success History
3
File:/run/media/kiosk/hello/linux Learning 7 Page 2 of 2
LASTB//View User login failure History
# # 7 # # Top command
Top//Monitoring System Load Tool

Linux Rookie Learning Path >>7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.