« Web Hosting 101: How to GET STARTED FAST!Globat Review »

What Linux distribution am I running?

  May 11, 2008 • Category: Tips

Sometimes you will be given a dedicated server or a VPS and you won't know exactly which flavor or distribution of Linux it is running.

Here is how you can find out when logged in through SSH:

# uname -a

This generally won't tell you as much as you'd like.

# cat /proc/version

This will generally tell you more than you'd like.

Once you know that you are running Red Hat for example, you can get to the point with:

# cat /etc/redhat-release

Or on Debian:

# cat /etc/debian_version

7 comments

User ratings
5 star:
 
(3)
4 star:
 
(1)
3 star:
 
(0)
2 star:
 
(0)
1 star:
 
(0)
4 ratings
Average user rating:
4.8 stars
(4.8)
Comment from: ben [Visitor]  
5 stars
ben

Awesome, thanks :)

06/03/13 @ 07:56
Comment from: Sandeep [Visitor]
4 stars
Sandeep

Thanks a lot for sharing this :)

09/10/12 @ 08:02
Comment from: sena [Visitor]
5 stars
sena

I was struggling to know which linux flavour my server runs. The cmd was really helpful :) Thanks.

01/16/12 @ 17:01
Comment from: Anand [Visitor]
Anand

use
#cat /etc/issue or
#cat /etc/issue.net

06/08/11 @ 01:25
Comment from: Web Design Montreal [Visitor]
5 stars
Web Design Montreal

Thank you I did # cat /proc/version and worked perfectly on Red hat

12/09/10 @ 22:58
Comment from: Anonymous [Visitor]
Anonymous

Thanks. This was what I was looking for.

01/21/09 @ 17:27
Comment from: Ralph [Visitor]
Ralph

#cat /etc/lsb-release ##Gives distro’s ID, Release, Codename, and Discription

07/24/08 @ 03:59

Search

  XML Feeds