How to View Linux System Information

To know only system name, you can use uname command without any switch will print system information or uname -s command will print the kernel name of your system.

root@localhost ~ $ uname

Linux

To view your network hostname, use ‘-n’ switch with uname command as shown.

root@localhost ~ $ uname -n

localhost.localdomain

To get information about kernel-version, use ‘-v’ switch.

root@localhost ~ $ uname -v

#1 SMP Thu Nov 8 23:39:32 UTC 2018

To get the information about your kernel release, use ‘-r’ switch.

root@localhost ~ $ uname -r

3.10.0-957.el7.x86_64

To print your machine hardware name, use ‘-m’ switch:

root@localhost ~ $ uname -m

x86_64