Linux Viewing operating System Information
uname command
The uname command is available for most Unix and Unix-like systems as well as Linux.
Function Description: Uname is used to obtain information about the computer and the operating system.
Syntax: uname [-amnrsvpio][--help][--version]
Supplemental Note: uname can display basic information such as the version of the operating system used by the Linux host, the name of the hardware.
Parameters
-A or –all verbose output all information, followed by kernel name, hostname, kernel version number, kernel version, hardware name, processor type, hardware platform type, operating system name
-M or –machine displays the hardware (CPU) name of the host
-N or-nodename displays the name or host name of the host on the network node
-R or –release display Linux OS kernel version number
-S or –sysname displays the Linux kernel name
-V shows the operating system is the first version
-P display processor type or unknown
-I display hardware platform type or unknown
-O Display Operating system name
Help Get Help information
–version Display uname version information
[Email protected] opt]# uname-alinux 121.199.16.178 2.6.32-279.el6.x86_64 #1 SMP Fri June 12:19:21 UTC + x86_64 x86 _64 x86_64 Gnu/linux
Cat/etc/issue
[Email protected] ~]# Cat/etc/issuecentos release 6.3 (Final) Kernel \ r on an \m
The/etc/issue file is actually what is displayed when the system starts. You can add your own content inside.
Cat/etc/redhat-release (useful for Redhat)
[Email protected] ~]# Cat/etc/redhat-releasecentos release 6.3 (Final)
Linux Viewing operating System Information