who.1

来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 1 代码 · 共 47 行

1
47
字号
.th WHO I 3/15/72.sh NAMEwho  \*-  who is on the system.sh SYNOPSIS.bd who[ who-file ] [.bd "am I"].sh DESCRIPTION.it Who,without an argument,lists the name, typewriter channel, and login timefor each current UNIX user..s3Without an argument,.it whoexamines the /etc/utmpfile to obtain its information.If a file is given, that file is examined.Typically the given file will be /usr/adm/wtmp,which contains a record of all the logins since itwas created.Then.it wholistslogins, logouts, and crashes since the creation ofthe wtmp file.Each login is listed with user name,typewriter name (with `/dev/'suppressed),and date and time.When an argument is given, logouts produce a similar line without a user name.Reboots produce a line with `x' in the place of the device name,and a fossil time indicative of when the system went down..s3With two arguments,.it whobehaves as if it had no arguments except for restrictingthe printout to the line for the current typewriter.Thus `who am I' (and also `who are you')tells you who you are logged in as..sh FILES/etc/utmp.sh "SEE ALSO"login (I), init (VIII).sh BUGS

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?