057_实操篇_进程管理类(一)_查看进程(三)_查看远程登录进程 [root@hadoop100 ~]# ps -ef | grep sshd root 1241 1 0 17:40 ? 00:00:00 /usr/sbin/sshd -D 系统服务 root 10980 1241 0 19:55 ? 00:00:00 sshd: root@pts/1 远程登陆 用户root root 12339 1241 1 21:43 ? 00:00:00 sshd: tony [priv] 权限分离 tony 12344 12339 0 21:43 ? 00:00:00 sshd: tony@pts/0 远程登陆 用户tony root 12099 10988 0 21:33 pts/1 00:00:00 grep --color=auto sshd 输入 ps -ef | grep sshd 产生的进程 远程登陆时,如果普通用户要使用root权限进行操作, 就用到 sshd: tony [priv] 进程; 如果只是普通的操作, 就用 sshd: tony@pts/0 进程。