Process and task management plans

1. Log in tty2 zhangsan user terminal, the implementation of some vim qq.txt process.
Process and task management plans
Process and task management plans
2, switch to a graphical, respectively, using different query process command, look at the use of process systems.
Process and task management plans
Process and task management plans! []Process and task management plans

3, using a funnel command, respectively, before and after switching station demonstration of the process.
Process and task management plans
Process and task management plans
4, respectively, use the command kill and killall end of the process, kill the related processes (command demonstrates using the funnel).
Process and task management plans
5, using the pkill will kill zhangsan user process.
Process and task management plans
Process and task management plans
6, at the use of command
under a task, the system's / tmp create a qq.txt file (current time pushed back three minutes).
Process and task management plans
Task II, 2019-12-31 21:30 shutdown.
Look at the task set.
Process and task management plans
Wait a moment to review whether qq.txt file generation.
Process and task management plans
Delete the task is not performed

Process and task management plans
7, using the crontab command
to create a file yy.txt (1) every 2 minutes in the system / tmp
Process and task management plans
Process and task management plans
(2) requires every Monday, Wednesday and Friday 9:30 p.m. on the / etc directory for backup, to save the backup file /backup/home.tar.gz under (/ backup to be created in advance).
Process and task management plans
Process and task management plans
(3) shut down the entire 10 day night.
Process and task management plans

Waiting time to see / tmp there is no next generation yy.txt file.
Process and task management plans

 重点:
 一 、  at(一次性)
 1.时间格式
     at           时:分   年-月-日

2. Set
at the time the format
command to be executed + D Ctrl
3. settings
at setting
atq provided
atrm delete
two, crontab (periodic)

  1. Time Format
    timeshare day Monday absolute path of the command or script
    2. Related command
    editor: crontab -e
    View: crontab -l
    Delete: crontab -r
    special representation 3. Time value method
    • : Refers to any time within this range
      ,: indicates a plurality of discrete intervals of time points
      -: showing a continuous time
      /: time interval specified frequency

Guess you like

Origin blog.51cto.com/14210513/2417243