17.07.25 Linux8 任务计划

  

  ps  aux

  tty为 “?”  说明为后台进程

  ps  -ef  | grep   ……

  ps  -fu  root

  top   M P   q 退出

 * 杀死进程

  kill  -l  

  sleep  999&

  ps  -ef  | grep  sleep

  pstree 21763(sleep的父进程pid)

 * 任务计划

  service crond status

  chkconfig  --list crond

  id

  crontab   -e  编辑

  * * * * * echo $(date)>>/root/test.log

  crontab  -l

  cat  /var/spool/cron/root

  cat  /var/log/cron

  

原文地址:https://www.cnblogs.com/Zhang-x/p/7232913.html