way 1: uname -a . it wont give you vendor name....it print flavor of linux
$ uname -a
Linux willard 2.6.24-28-server #1 SMP Thu May 27 00:58:42 UTC 2010 i686 GNU/Linux
way 2: cat /proc/version
$ cat /proc/version
Linux version 2.6.24-28-server (buildd@rothera) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)) #1 SMP Thu May 27 00:58:42 UTC 2010
When I run on fedora,
$ uname -a
Linux adsl-99-140-126-11.dsl.sfldmi.sbcglobal.net 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 athlon i386 GNU/Linux
$ cat /proc/version
Linux version 2.6.23.1-42.fc8 (kojibuilder@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Tue Oct 30 13:55:12 EDT 2007
No comments:
Post a Comment