|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!1、查询在线用户:
[plain]viewplaincopy
- [root@leekwen~]#w
- 09:18:37up22:30,4users,loadaverage:0.00,0.02,0.00
- USERTTYFROMLOGIN@IDLEJCPUPCPUWHAT
- rootpts/2122.224.121.19409:0313:560.01s0.00stail-f/var/lo
- rootpts/4122.224.121.19409:056:160.01s0.01s-bash
- rootpts/5122.224.121.19409:090.00s0.03s0.00sw
- rootpts/3122.224.121.19409:170.00s0.01s0.01s-bash
2、查询pts/2客户端运转的步伐:[plain]viewplaincopy
- [root@leekwen~]#ps-ef|greppts/2
- root89981418009:03?00:00:00sshd:root@pts/2
- root90008998009:03pts/200:00:00-bash
- root90729000009:04pts/200:00:00tail-f/var/log/messages
- root97029283009:18pts/500:00:00greppts/2
3、剔除pts/2客户端:[plain]viewplaincopy
- [root@leekwen~]#kill-99000
- [root@leekwen~]#ps-ef|greppts/2
- root89981418009:03?00:00:00sshd:root@pts/2
- root97639283009:18pts/500:00:00greppts/2
- [root@leekwen~]#ps-ef|greppts
- root89981418009:03?00:00:00sshd:root@pts/2
- root90881418009:05?00:00:00sshd:root@pts/4
- root90909088009:05pts/400:00:00-bash
- root92811418009:09?00:00:00sshd:root@pts/5
- root92839281009:09pts/500:00:00-bash
- root95691418009:17?00:00:00sshd:root@pts/3
- root95729569009:17pts/300:00:00-bash
- root97879283009:18pts/500:00:00ps-ef
- root97889283009:18pts/500:00:00greppts
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|