LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Finding version in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/finding-version-in-linux-857674/)

balakodoth 01-20-2011 08:34 PM

Finding version in Linux
 
is there any command with which we can view the version of Linux ?

AlucardZero 01-20-2011 08:35 PM

uname -a
cat /etc/*release
or
cat /etc/*version

wile_coyote 01-20-2011 10:10 PM

AlucardZero hit the info you need. uname -r will give you the kernel release contained in uname -a.

Aquarius_Girl 01-20-2011 10:48 PM

Code:

anisha@linux-uitj:~> cat /etc/issue
Welcome to openSUSE 11.2 "Emerald" - Kernel \r (\l).


austinium 01-20-2011 11:25 PM

Code:

lsb_release -a
Code:

vs@vsn:~$ lsb_release -a
No LSB modules are available.
Distributor ID:        Debian
Description:        Debian GNU/Linux 6.0 (squeeze)
Release:        6.0
Codename:        squeeze


prakasha.lunux 01-20-2011 11:38 PM

uname -a gives all info about the machine ..... EX: kernel, OS, etc..

Aquarius_Girl 01-20-2011 11:49 PM

Quote:

Originally Posted by prakasha.lunux (Post 4232507)
uname -a gives all info about the machine ..... EX: kernel, OS, etc..

It doesn't show the distribution!

This combination will be more helpful, I think:
Code:

anisha@linux-uitj:~> uname -a && cat /etc/issue
Linux linux-uitj 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux
Welcome to openSUSE 11.2 "Emerald" - Kernel \r (\l).

anisha@linux-uitj:~>



All times are GMT -5. The time now is 04:22 PM.