AegisRyan's Island

about tech, code, hobbies..



How to Check My Linux Version?

The similar question you may ask:

  • How to know my Linux server is running in 64/32 bits?
  • How to check which kernel version is my Linux?
  • How to show the Linux release name? Is it Ubuntu?Redhat or CentOS or something else?

In work, we have many different linux servers either in physical machine or virtual machine (Using Xen/KVM). Sometimes we easily lost track of which linux version is installed for Server A, B, and other.

There are few simple command to check for which Linux version you were using:

To show the linux release information as per LSB specification

sudo lsb_release -a

No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 8.04
Release:    8.04
Codename:    hardy

To show the Linux kernel build and version

cat /proc/version

Linux version 2.6.24-19-xen (buildd@king) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Sat Jul 12 00:15:59 UTC 2008

The other commands is to show the kernel version and type:

uname -a

Linux penguin 2.6.24-19-xen #1 SMP Sat Jul 12 00:15:59 UTC 2008 x86_64 GNU/Linux

bookmark:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogosphere News







Leave a Reply