1.13 uname Command
The uname command displays system information. This command will output Linux by default when it is executed without any options.
sysadmin@localhost:~$ uname
Linux
Options for the uname command are as follows:
Short Option Long Option Prints
-a –all All information
-s –kernel-name Kernel name
-n –node-name Network node name
-r –kernel-release Kernel release
-v –kernel-version Kernel version
-m –machine Machine hardware name
-p –processor Processor type or unknown
-i –hardware-platform Hardware platform or unknown
-o –operating-system Operating system
–help Help information
–version Version information
The uname command is useful for several reasons, including when you need to determine the name of the computer as well as the current version of the kernel that is being used.