Monday, October 1, 2007

How to find out which version of Linux

How to determine if Linux is 64bit ?

uname -a

Linux snook.srv.bang.indorion.org 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux

x86_64 GNU/Linux indicates I have 64bit CPU. If you use see i386/i486/i586/i686 it is a 32 bit CPU.

How to find out which version of Linux you are running ?
Method 1

ls /etc/*release*
ls /etc/*version*

This will give you a file that contains the version.
cat file_that_ls_found

Method 2

uname -a (prints all information)

uname -r (prints the kernel release)

uname -v (prints the kernel version)

uname -o (prints the operating system)

No comments: