Reputation: 5585
I am facing problem to find output the Operating system name
and version
number on linux
system. I hit a command uname -a
, but i can't understand the output of this command, can anybody please explain the below output and help me to find the operating system name and version?
$ uname -a
Linux ABC007 2.6.32-573.3.1.el6.x86_64 #1 SMP Mon Aug 10 09:44:54 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
I need to find the Vender name of OS, like Intel, Redhat etc. Any command to do so?
Upvotes: 3
Views: 5701
Reputation: 840
You can use below command to print the only operating system name and version or Release info:
lsb_release -a
Command Output:(Currently running Ubuntu)
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
Upvotes: 4
Reputation: 753
from the man
page:
DESCRIPTION Print certain system information. With no OPTION, same as -s.
-a, --all print all information, in the following order, except omit -p and -i if unknown:
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
So, in your case uname -a
output is:
Linux ABC007 2.6.32-573.3.1.el6.x86_64 #1 SMP Mon Aug 10 09:44:54 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
Upvotes: 7