Anti-counterfeiting code: Empty talk endangers, hard work hing Bang
Chapter seventh process and planned task management
One, view process information
1. View Static Process information
PS aux
2. View dynamic Process Information
Top
3. Query process information according to the conditions
Pgrep-l "Process Name"
4. View the process tree
Pstree-aup
Second, the process started
1, manual start: Front desk backstage (&)
2. Dispatch start: at (disposable), crontab (periodic)
Third, manual start, the details are shown in the notes:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/86/85/wKioL1fCfX2j4SgIABzrUPkNfUQ430.png-wh_500x0-wm_3 -wmp_4-s_1045952957.png "title=" Eb4a177d60d6253fe5d300f4a578b69b.png "alt=" Wkiol1fcfx2j4sgiabzrupknfuq430.png-wh _50 "/>
Funnel command: cat/dev/zero (table will never be read 0) >/dev/null (table will always write dissatisfied files)
Iv. conclusion of the process
1. Ctrl + C (running process)
2. Kill (PID of killing process)
Format: Kill PID Number
Option-Q table coercion
3, Killall (Kill process name)
Format: Kill all
4, Pkill (kill the process according to certain conditions)
Pkill-q-U "Zhang San" (Take user Zhang San as an example)
V. at (disposable)
Service script:/ETC/INIT.D/ATD
Format: at: Year-month-day
CTRL +D Table Submit task
Related commands:
at (set) view current time: Date
ATQ (query) modified time date-s: minutes
ATRM (delete) Date Modified: Date-s Month Day
Vi. crontab (cyclical)
Service script:/etc/init.d/crond
Format:
Time-of-day week (0, 7 for Sunday) command or Script (absolute path)
Related commands:
CRONTAB-E Edit
Crontab-l View
Crontab-r Delete
Special representations of time values:
*: Indicates any time within the range
,: Multiple discontinuous points of time that represent intervals
-: Represents a continuous range of time
/: Specify the time frequency of the interval
Prevent conflicts, as shown in the notes:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/85/wKioL1fCgoqgEe6MAA4P7y5FO8A867.png-wh_500x0-wm_3 -wmp_4-s_4060526583.png "title=" 0834aa721ad31198f7ec60854383d799.png "alt=" Wkiol1fcgoqgee6maa4p7y5fo8a867.png-wh _50 "/>
Eighth chapter analysis and troubleshooting system failures
Considering the theoretical knowledge is difficult to understand, so will be updated in the follow-up experiment text, really hope to help everyone, thank you!
Classification of logs:
Kernel and system logs, user logs, program logs
Log Save location:
Default in:/var/log directory
Kernel and public message log:/var/log/messages
Scheduled Task log:/var/log/cron
Log message Importance:
0 Emerg (Emergency): causes the host system to become unusable
1 alert (warning): A problem that must be taken immediate action to resolve
2 Crit (severe): more serious situation
3 ERR (Error): Run error occurred
4 WARNING (Reminder): May affect the system function, need to remind the user important event
5 NOTICE (Note): Events that do not affect system functionality, but should be noted
6 info (Info): General information
7 Debug (Debug): Program or system debugging information and so on.
Prevent conflicts, as shown in the notes:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/86/85/wKioL1fChOPBkXSsABdVqbCH56I612.png-wh_500x0-wm_3 -wmp_4-s_2731104250.png "title=" 3731840a4a44740d385126c3e7f5afbe.png "alt=" Wkiol1fchopbkxssabdvqbch56i612.png-wh _50 "/>
Thank you for watching, your support is my biggest motivation!
This article is from "A Candle" blog, please be sure to keep this source http://yw666.blog.51cto.com/11977292/1843522
Linux basic concepts and Personal notes summary (4)