快捷键:
P M k q r ? > <
进程优先级设定:
nice -n 19 updatedb
renice +12 0 uodatedb
renice +19 -u qin
ps aux 显示全部进程的详细信息列表
ps aux | grep httpd 过滤出httpd服务的进程
ps -elf
ps auxf
kill -l 查看可以kill的模式
kill -9 PID -9 暴力关闭进程
kill -15 PID -15正常关闭进程
skill -9 jmilk skill后跟进程名字
skill -9 pts/1
pkill -u jmilk
pgrep httpd
pstree -aup
echo jmilk > jmilk
echo bing > bing
echo jmilkbing > jmilkbing
vim jmilk &
vim bing
ctrl+z
vim jmilkbing
ctrl+z
jobs 查看后台进程
fg 2
ps aux | grep vim
pgrep vim
kill -9 PID
fuser:
fuser:使用文件或者套节字来表示识别进程。
mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
umount /mnt/cdrom
fuser -km /mnt/cdrom
umount /mnt/cdrom
at 16:00
at>touch 1 2 3 4 5 6
at>ctrl+d
crontab -e -u jmilk1
35 14 * * * /bin/touch /home/jmilk1/file{1..99}
crontab -e
50 7 * * * /sbin/service httpd start
50 22 * * * /sbin/service sshd stop
0 0 */5 1-5 * /bin/rm –rf /var/ftp/pub/*
30 7 * * 6 /sbin/service httpd restart