Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding linux version

Status
Not open for further replies.

toraj58

Technical User
Dec 10, 2006
15
IR
how is it possible to find the version of linux using a command?

and how to find it from a file?
 
Code:
uname -a
will give you info about the linux kernel running on your system


or look into the file

/proc/version

for detailed info about linux kernel and distribution

Cheers

QatQat




Life is what happens when you are making other plans.
 
or, I forgot

Code:
cat /etc/issue

brief info about distro

QatQat

Life is what happens when you are making other plans.
 
tnx qatqat...'cat /etc/issue' was so usefull for me i only knew 'cat /etc/redhat-release'
 
I wonder, Is there perhaps a common command to all distros to get this info?

One some sites, people remove text from /etc/issue & /etc/motd
I use Slackware 11 which doesn't have anything in /etc/issue (and I removed the text in /etc/motd)
I can still check the distro name and version in /etc/slackware-version
I'm also not sure if these files are updated if you upgrade to a higher version?



"If you always do what you've always done, you will always be where you've always been."
 
Not really common, but the existence of a "-release" file, or maybe -version, seems to be pretty common. On RedHat it's redhat-release, on SUSE it's SuSE-release. The file belongs to a package (mine's centos-release-4-4.2), so it'll be updated when that package is updated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top