[ale] Am I linux?

Bob's ALE Mail transam at cavu.com
Thu Dec 12 23:58:51 EST 1996


Alex Agle said:
> Bob Toxen said:
> > One also could test for the existence of /etc/version and grep for Linux in
> > it.  With the inappropriate syntax this could be used for other shells too.

> I've got an older version of linux, and I don't have an /etc/version
> in my filesystem.

Uh, I meant to say /proc/version.

> Usually a surefire way to figure out what unix you're running is to
> use the uname command.  uname -a lists all of the information.

I didn't think of that.  "uname -s" gives "Linux" on my system, which
would work.  Thanks.

> Alex

Bob






More information about the Ale mailing list