GNU/Linux >> Linux の 問題 >  >> Linux

Linuxで既存のセッションをログオフします

:他のユーザーのセッションを終了するには、rootである必要があります。

  1. wを使用して、現在のユーザーセッションを確認します コマンド:

     ~]# w
     17:49:20 up 198 days,  5:23,  3 users,  load average: 0.00, 0.01, 0.05
     USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
     root     tty1                      16:48   59:28   0.08s  0.08s -bash
     root     pts/0    ord.secure-acces 16:50    0.00s  0.10s  0.02s w
     james    pts/1    ord.secure-acces 17:49    5.00s  0.03s  0.03s -bash
    
  2. ユーザーをログオフします:

     ~]# pkill -KILL -u james
    
  3. 確認:

     ~]# w
     17:50:07 up 198 days,  5:24,  2 users,  load average: 0.00, 0.01, 0.05
     USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
     root     tty1                      16:48    1:00m  0.08s  0.08s -bash
     root     pts/0    ord.secure-acces 16:50    7.00s  0.10s  0.01s w
    

Linux
  1. Linuxの権限101

  2. Linuxでrootアカウントを無効にする4つの方法

  3. Linuxでログファイルを空にする方法

  1. Linuxログファイル

  2. Linux OS サービス「NetworkManager」

  3. Linux OS サービス「syslog」

  1. Linuxで既存のセッションをログオフします

  2. Linux / UNIX OS サービス :Bluetooth

  3. Linux OS サービス「rpcidmapd」