This is quick guide howto show Linux version, howto show Linux distributin (distro) info, howto show Linux System information, kernel version and kernel information on command line.

Show Linux Version

Linux version information can be checked using the following commands:

cat /proc/version

Another way to check Linux Version information is following:

dmesg | grep "Linux version"

Example output:

Linux version 4.11.10-300.fc26.x86_64 ([email protected]) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Wed Jul 12 17:05:39 UTC 2017

Show Linux Distribution/Distro information

Use lsb_release command to show Linux distribution information:

lsb_release -a

Example output:

LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	Fedora
Description:	Fedora release 26 (Twenty Six)
Release:	26
Codename:	TwentySix

Show Linux System Information

Use ‘uname’ command to show Linux system information:

uname -a

Example output:

Linux localhost.localdomain 4.11.10-300.fc26.x86_64 #1 SMP Wed Jul 12 17:05:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Show just all Linux kernel information (Kernel name, Kernel release, Kernel version) with following command:

uname -srv

Example output:

Linux 4.11.10-300.fc26.x86_64 #1 SMP Wed Jul 12 17:05:39 UTC 2017