Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxチュートリアル >> Linuxオンラインユーザーを表示してユーザーをキックアウトする

Linuxオンラインユーザーを表示してユーザーをキックアウトする

  

1、オンラインユーザーを表示する

[root @ dbserver01〜]#w16:45:04 16日まで、8:48、1ユーザー、ロード平均:0.08 、0.07、0.05USER TTYログイン@ IDLE JCPU PCPU WHAToracle pts /0 192.168.1.116 15:18 0.00秒1:16 0.03秒sshd:oracle [priv]

2、ユーザーのログイン履歴を表示:

[root @ dbserver01〜]#last

oracle pts /0 192.168.1.116月7月1日15時18分まだログインooracle pts /0 192.168.1.116火6月25日17:39 - 18:04 (00:25)oracle pts /0 192.168.1.116火6月25日17:13 - 17:14(00:00)oracle pts /1 192.168.1.116火6月25 15:05 - 15:07(00:01)oracle Pts /0 192.168.1.116 Tues Jun 25 11:20 - 15:12(03:51)

3、ユーザーを追い出す:

#pkill -KILL -t pts /0 ## Pts /0は、w命令から見たユーザー端末番号です。

Copyright © Windowsの知識 All Rights Reserved