2008-05-21

How To Find What Linux Distribution You Are Running [Linux Gyan]

by Anoop Engineer 4 comments






If you are asked a question like - How will you find whether the Linux distribution installed in a PC is Ubuntu or Fedora, what would be your answer?

Before answering something like Ubuntu is orange while fedora will look blue, remember that Linux is the most customizable operating system out there. You can modify the look and feel of the system to any extend, limited only by your imagination. You can make a Fedora installation look like Ubuntu and vice-versa.

How would you know what Linux distribution you are running?

Take a terminal and enter the below command:

lsb_release -a


(Note - You can use this command to know whether you have successfully updated to Ubuntu 8.04 or not after a system upgrade)



This will give you all information like the Distribution name, version, code name etc.

Note that this utility simply reads out the contents of the file /etc/lsb-release. So simply printing this file will also give the same information.



In case the above utility is not installed, try

cat /proc/version


which will give you the details of the installed kernel and the distribution name.

Happy Linuxing.

Comments 4 comments
Anonymous said...

cat /proc/version ~= uname -a

Anonymous said...

cat /etc/*release. In Suse for example is:
root# cat /etc/SuSE-release
SuSE-release SuSEconfig/
Radon:~/minicom-2.2 # cat /etc/SuSE-release
SUSE LINUX 10.0 (i586)
VERSION = 10.0

Anonymous said...

YOUR *.NIX PAPER IS ASS AN I USE THE PHRASE LOOSELY YOU CAN GET THE SAME RESULTS WITH LESS KEYSTROKES BY QUERYING THE KERNEL WITH SU PERMISSIONS. IN OTHER WORDS I THIN YOUR A LAMER TRYING TO MAKE *.NIX USERS CONFUSED. STEP DOWN LaMeR

HaCkEr_31

YBI OWNS YOU

Submariner replica watches said...

Your post is really informative for me. I liked it very much.

Post a Comment

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Advertise on this site Sponsored links

Subscribe feeds rss Recent Entries

Categories

Subscribe feed rss Popular posts

Subscribe comments rss Recent Comments

Technorati

Technorati
My authority on technorati
Add this blog to your faves