1. Log in tty2 zhangsan user terminal, the implementation of some vim qq.txt process.
2, switch to a graphical, respectively, using different query process command, look at the use of process systems.
! []
3, using a funnel command, respectively, before and after switching station demonstration of the process.
4, respectively, use the command kill and killall end of the process, kill the related processes (command demonstrates using the funnel).
5, using the pkill will kill zhangsan user process.
6, at the use of command
under a task, the system's / tmp create a qq.txt file (current time pushed back three minutes).
Task II, 2019-12-31 21:30 shutdown.
Look at the task set.
Wait a moment to review whether qq.txt file generation.
Delete the task is not performed
7, using the crontab command
to create a file yy.txt (1) every 2 minutes in the system / tmp
(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).
(3) shut down the entire 10 day night.
Waiting time to see / tmp there is no next generation yy.txt file.
重点:
一 、 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)
- 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
- : Refers to any time within this range