2012年7月31日
摘要: //查看进程ps -aux | more//终止进程kill pid如: kill -9 5229//动态监控进程toptop -d 10 //每隔10秒更新//查看日历cal 8 2012cal 2012//网络端口监控netstat -anp | more 阅读全文
posted @ 2012-07-31 23:27 Chenyong Liu 阅读(149) 评论(0) 推荐(0)
摘要: --crontab//编辑/终止/查看任务crontab -e/r/l//任务格式m(分) h(时) d(天) m(月) w(星期) command如:* * * * * date >> /home/mydate1 //每隔一分钟记录系统时间到mydate1文件中//shell编程//编辑sh文件vi /home/mytask.shdate >> /home/mydate2cp /home/mydate2 /home/aa//执行chmod 744 /home/mytask.shcrontab -e* * * * * /home/mytask.sh 阅读全文
posted @ 2012-07-31 22:02 Chenyong Liu 阅读(135) 评论(0) 推荐(0)