How do I Tell What Version of Linux I’m Running?

How do I tell which version of Linux is on my server?

There are a number of ways, there is a command line tool `lsb_release` used to check the distribution, and version

1
2
3
4
5
6
$ lsb_release -a
LSB Version:    :core-x.x-ia32:core-x.x-noarch:graphics-x.x-ia32
Distributor ID: Fedora
Description:    Fedora release 14 (Laughlin)
Release:    14
Codename:   Laughlin

Unfortunately it is not available on all systems, especially if your system is really out of date. But you can try the following…

1
2
$ cat /etc/*-release
CentOS release 5.4 (Final)

Or…

1
2
$ cat /etc/*-version
Slackware 11.0.0
Category(s): Linux, Server Administration, Web Servers
Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

 

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free