LINNX view the current logged-on user

W

     w command mainly to view the current logged-in user, this command is relatively simple. We look at the screenshots.

 

In the above screenshot inside it, the first column user, on behalf of the logged in user, the second column represents the user login tty terminal number, because in linux is not the only one terminal, pts / 2 represents the second graphical interface terminals (this is only a personal opinion, views on the internet may be some controversy pts). The third column FROM representatives of local login, remote login if it is, it will display ip address: 0 represents the display 0: 0, meaning that the first virtual terminal main console. The fourth column represents the login @ login time, idle time IDLE represents the system's fifth column. Finally, a representative of what the process is running, because I am running w command, so ye root display w.

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11109054.html