Linux Version Command

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-version-command/
PINTEREST
PINTEREST
INSTAGRAM

Linux is the kernel and there are a lot of distributions those use kernel. Distributions provides different experience and flavors to the users. Some times getting distribution and version information from a linux box became very important. We will look how to get Linux kernel and distribution from linux system.

Kernel Information

Kernel information can be get with uname command which is by default exists all Linux, Unix,BSD operating systems.

Ubuntu uname example

 

CentOS uname example

Without any parameter uname will list current operating system which is Linux.

Kernel Release or Version

Kernel release can be listed with -r parameter like below.

Distribution Information

Distribution information can be get different way. Getting distribution information changes from distribution to distribution but there are some common ways to use.

Ubuntu
CentOS

Proc Filesystem

We can use proc file  system to get ostype,osrelease and version information

Ubuntu
CentOS

Release File

Other and most informative way is using release file like below

Ubuntu release file

 

CentOS release file

 

Lsb_release

Ubuntu and Debian way getting distribution information. This command can not be run on CentOS

Ubuntu – lsb_release command
RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-version-command/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To Set Get and Change Bash Environment Variable?

Leave a Reply

Your email address will not be published.