Wikia

How To Wiki

How to display the version of you linux kernel

1,794pages on
this wiki
Talk0
  1. Here are a couple of ways of determining which versions of the kernel you have:

uname Edit

uname potentially provides the following information on the operating system:

# uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unknown"
  -i, --hardware-platform  print the hardware platform or "unknown"
  -o, --operating-system   print the operating system

the output for uname -a is all one one long line, so it can be hard to decipher when one part ends and another begins. It is likely more useful to use the options one at a time.

# uname -m
i686

# uname -p
i686

# uname -o
GNU/Linux

# uname -s
Linux

# uname -r
2.6.18-128.el5xen

# uname -v
#1 SMP Wed Jan 21 11:55:02 EST 2009

NotesEdit

    • It is not nessecary to be root, user login is fine
    • your mileage may vary...

Around Wikia's network

Random Wiki