该文章主要为完成实训任务,详细实现过程及结果见【参考文章】
参考文章:https://howard2005.blog.csdn.net/article/details/127066383?spm=1001.2014.3001.5502
(1)命令作用在这里插入图片描述
(2)参数说明
(3)操作案例
执行命令: ps la | head -5
,能够观察所有系统的数据
执行命令:ps axjf | head -20
,连同部分程序树状态
执行命令:ps l
仅查看自己的bash相关的进程
执行命令:ps aux
观察系统所有进程
(1)参数选项
(2)操作案例演示
top -d 3
,每隔三秒更新一次数据top -b -n 2
,进行两次top的输出结果(1)命令概述
(2)安装pstree
yum -y install psmisc
pstree
pstree -Aup
pstree -aup | grep sshd
kill -1 1275
yum -y install net-tools
netstat -atp
netstat -antp
netstat -lntp
vmstat 1 4
,统计目前主机CPU状态,每秒一次,共计四次tail -F anaconda-ks.cfg &
jobs -r
# r: Runningjobs -s
# s: Stoppedjobs -l
,可以显示后台任务进程号pstree -aup
,查看进程树的sshd部分jobs -l
kill -15 17788