Tuesday, May 1, 2012

Linux command: Show Linux Version

What command I need to type to display my Linux version and other information?

Open shell prompt (or terminal) and type the following command to see your current Linux kernel version:
$ uname -r
2.6.32-23-generic-pae
$ uname -mrs
Linux 2.6.32-23-generic-pae i686
$ uname -a
Sample outpute:
Linux vivek-laptop 2.6.32-23-generic-pae #37-Ubuntu SMP Fri Jun 11 09:26:55 UTC 2010 i686 GNU/Linux
Where,
  • 2.6.32-23 - Linux kernel version number
  • pae - Kernel type to access more than 4GB ram using 32 bit kernel.
  • SMP - Kernel that support multi core and multiple cpus

Find Distribution Version

Type the following command:
$ cat /etc/*release
OR
$ lsb_release -a
Sample outputs:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

No comments:

Post a Comment