Determining linux distribution

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Apr 18 13:56:47 UTC 2005


On Sun, Apr 17, 2005 at 06:23:25PM +0000, Jason Shein wrote:
> This will work
> 
> cat /etc/*-release

...on some subset of distributions.

ls /etc/*release /etc/*version could be better, and if you cat any file
found, you would have an idea of the version number (but only any idea
as it may be wrong.  Debian unstable will still say 3.1 even though it
isn't 3.1).

cat /etc/issue may help too on some distributions.

But there certainly isn't a universal solution.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list