[LINUX] who command memo

The logged-in user, login time, connection source, etc. are displayed.

$ who
miisuke     pts/0        2019-07-19 13:32 (gateway.test.jp)

It may be easier to understand with the item name if you add -H.

$ who -H
Name terminal time comment
miisuke     pts/0        2019-07-19 13:32 (gateway.test.jp)

Shows the time the server started

$ who -b
         system boot  2014-07-07 14:26

Try adding the u option as well.

# who -uH
USER     LINE     LOGIN-TIME   IDLE  FROM
number   tty1     Nov 21 01:54  old
number   pts/1    Nov 22 01:16 06:37
hoge     pts/0    Nov 21 16:24   .   (xxx.xxx.xxx.xxx)
number   pts/2    Nov 22 01:29 02:08
hoge     pts/3    Nov 23 03:03 00:06 (xxx.xxx.xxx.xxx)


About the display of the IDLE column
If. Is displayed, it means that the user is operating the terminal within 1 minute. If old is displayed, it means that the user has not operated the terminal for more than 24 hours.

Recommended Posts

who command memo
command memo
Command memo
scp command memo
Linux # Command Memo 1
Basic Python command memo
virtualenv Basic command usage memo
Linux tar xz command memo
[Learning memo] Django command summary
[Personal memo] Python virtual environment command memo
Linux command [ldconfig] LPIC learning memo
find / grep command (beginner's personal memo)
Linux command (basic in basic) personal memo
gzip memo
Raspberry-pi memo
Pandas memo
Linux command # 4
Linux command # 3
HackerRank memo
Python memo
Command memorandum
python memo
graphene memo
command prompt
pyenv memo
Matplotlib memo
pytest memo
sed memo
Python memo
vim command
Install Memo
BeautifulSoup4 memo
networkx memo
sed command
python memo
Linux command # 5
grep command
tomcat memo
Generator memo.
psycopg2 memo
Python memo
SSH memo
top command
Command memorandum
Memo: rtl8812
pandas memo
mv command
Shell memo
seq command
Python memo
Pycharm memo
Python memo
Command memo to apply load for performance verification