how to check linux version?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
songwind
Forum Newbie
Posts: 14
Joined: Wed Jul 26, 2006 9:27 am

how to check linux version?

Post by songwind »

Hello, could anyone tell me how to check the linux version on the command line?
I have tried to search it for it on google, but got unlucky for far.

Thanks :D
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Code: Select all

cat /proc/version
songwind
Forum Newbie
Posts: 14
Joined: Wed Jul 26, 2006 9:27 am

Post by songwind »

Thanks Burrito, you are the best!
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

Post by cheikhbouchihda »

Hello,
you can do also:

Code: Select all

cat /etc/issue
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

Code: Select all

uname -r
uname is useful for getting a bunch of info about the system.

man uname
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

FYI:

uname is for returning actual linux kernel information

/etc/issue is distro-specific

/proc/version returns a useful combination of distro/kernel information (usually... sometimes it's just the kernel info)

/proc is a good place to look for accurate information about the system in general. For example, I usually `cat /proc/acpi/battery/BAT0/state' when I'm not in a desktop environment and I'm wondering how much battery life I have left, even though there are tools for this.
songwind
Forum Newbie
Posts: 14
Joined: Wed Jul 26, 2006 9:27 am

Post by songwind »

Thanks, mates, I got it!!
Post Reply