User version Information view1. View current system User login information: who
Command name: Who command path:/usr/bin/who Execute permissions: All user syntax: Who function Description: View current system User login information supplement: W command provides more powerful features than the WHO command
2. View Current user identity: WhoAmI
Command name: WhoAmI command path:/usr/bin/whoami Execute permissions: All user syntax: WhoAmI function Description: View Current user identity
3. View System Version information: Uname
Command name: uname command path:/usr/bin/uname Execute permissions: All user syntax: Uname-a # #当前操作系统的所有有用信息-R # #内核版本信息 (in 3.10.0-229.el7.x86_6 4 for example, the second bit 10 is more important, the odd number is the beta version, the even is the official version) function Description: View System version information
Add:
Basic concept: 1. TTY (collectively referred to as terminal equipment): The word "TTY" originates from teletypes, or teletypewriters, which originally refers to a telex typewriter, which is used to read and send information through a printer keyboard through a serial line, which is later replaced by a keyboard and a display, so it is now more appropriate to call the terminal. A terminal is a type of character device that has many types, usually using a TTY for short-range end devices. 2. Pty (virtual Terminal): But do we need a terminal interaction if we telnet to the host or use xterm remotely? Yes, this is Virtual Terminal pty (Pseudo-tty) 3. PTS/PTMX (PTS/PTMX is used in conjunction to achieve Pty): pts (pseudo-terminal slave) is the implementation of Pty, and PTMX (Pseudo-terminal master) is used in conjunction with Pty.
[Linux Learning Notes] Linux common Commands-user version information view