【Linux】Linux 踢人 pkill -kill -t pts/1


quote]
linux120:/opt/oms/run/bin # who
root pts/0 Oct 24 10:20 (10.166.46.135)
root pts/2 Oct 24 11:11 (10.166.46.115)
root pts/3 Oct 24 17:05 (10.166.46.147)
linux120:/opt/oms/run/bin # w
17:32:05 up 1 day, 8:14, 5 users, load average: 0.11, 0.51, 0.80
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 10:20 3:09 0.10s 0.10s -bash
root pts/2 11:11 5:20m 0.12s 0.12s -bash
root pts/3 17:05 0.00s 0.06s 0.00s w

解釋:
pkill -kill -t  踢人命令
tty 所踢用戶的TTY
如上踢出liu用戶的命令為: pkill -kill -t pts/1
只有root用戶才能踢人,如果同時有二個人用root用戶登錄,任何其中一個可以踢掉另一個。
任何用戶都可以踢掉自己 -_-.
[/quote]

摘自:https://blog.csdn.net/QSpace/article/details/84365038


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM