红联Linux门户
Linux帮助

A trick to find out your ubuntu version and vesion name

发布时间:2007-12-22 00:53:57来源:红联作者:CoDi
Here is a very stupid question: Which system am I using? But sometimes you will find out, that it is not so stupid, otherwise you will be stupid, because it keeps asking about this question if you want to post something in some technical forums and you don't know. Ubuntu releases every 6 month a version, and every version has a name. For somebody like me whose memory is extreme short-term, I think, this is necessary to know.
And you will find out, this stupid question is not so easy to be answered. Because every one thinks it were easy. I tried a lot, and I figured out. As a note, I put it here for the next use. Do you remember? My short-term memory?
You can try:


cat /etc/lsb-release

and you will get something like:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

I don't think that I have to explain the rest.

If you don't trust the cat way, because files sometimes actually lie. Try it this way:

lsb_release -a

If you are more curious, you can find out more about this command with man lsb_release.

Gepostet von Simon unter 2:44 AM
文章评论

共有 0 条评论