who
Linux Command – who ใช้ในการแสดงข้อมูล user ที่ login ขณะนั้น
คำสั่ง
who
$ who msc pts/0 2017-05-09 16:32 (172.20.91.138) msc pts/2 2017-05-08 22:18 (172.20.91.79) msc pts/3 2017-05-08 13:36 (172.20.91.138) spo pts/5 2017-05-10 13:16 (10.95.120.57) mst pts/6 2017-05-10 11:54 (172.20.91.44) mst pts/7 2017-05-08 09:20 (172.20.91.177) msc pts/8 2017-05-08 23:00 (172.20.91.138) mst pts/9 2017-05-10 13:39 (10.95.120.34) vas pts/10 2017-04-04 14:11 (172.20.91.151) spo pts/11 2017-05-03 23:44 (172.16.69.156)
โครงสร้างคำสั่ง
who [OPTION]... [ FILE | ARG1 ARG2 ]
รายละเอียด
เป็นคำสั่งที่ใช้ในการแสดงข้อมูล user ที่ login ขณะนั้นทั้งหมด
Option
-a, --all same as -b -d --login -p -r -t -T -u -b, --boot time of last system boot -d, --dead print dead processes -H, --heading print line of column headings --ips print ips instead of hostnames. with --lookup, canonicalizes based on stored IP, if available, rather than stored hostname -l, --login print system login processes --lookup attempt to canonicalize hostnames via DNS -m only hostname and user associated with stdin -p, --process print active processes spawned by init -q, --count all login names and number of users logged on -r, --runlevel print current runlevel -s, --short print only name, line, and time (default) -t, --time print last system clock change -T, -w, --mesg add user's message status as +, - or ? -u, --users list users logged in --message same as -T --writable same as -T --help display this help and exit --version output version information and exit
กลุ่มคำสั่ง
Reference:
Author: Suphakit Annoppornchai
Credit: https://saixiii.com
[…] who, su, free(1), ps(1), top(1), uptime(1), utmp(5) […]
[…] w, who […]