Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Guide to Unix/Commands/Self Information

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

whoami whoami tells you your current username. Examples: $ whoami abicool Links: whoami, freebsd.org 20.3 whoami in GNU Coreutils manual, gnu.org groups groups states the groups the current user is a member of Examples: $ groups wheel slocate www Links: groups, freebsd.org 20.4 groups in GNU Coreutils manual, gnu.org id id gives you the same information as the whoami and groups commands, but also includes the user id (uid) and group id (gid) integers associated with the login. Examples: $ id uid=3426(alice) gid=10(wheel) groups=10(wheel),21(slocate),401(www) Links: id, opengroup.org 20.1 id in GNU Coreutils manual, gnu.org tty tty tells you the terminal device that is assigned to your interactive login. The tty represents your console device, network connection ("ssh", ...), or terminal emulator process ("xterm", "konsole", ...). Examples: $ tty /dev/pts/14 Links: tty, opengroup.org tty man page, man.cat-v.org 19.4 tty in GNU Coreutils manual, gnu.org