Introduction

  • Introduction
  • Making Use of uname

Kernel Runtime Management asnd Trubleshooting

/bin/uname

uname -s Kernel name

uname -n  Computer name

uname -r Kernel release

uname -v   Kernel versionl

uname -m Machine name

uname -p  Processor type

uname -i Hardware platform

uname -o Operatioin system

uname -a All

 

/proc/version

cat /proc/cmdline

~$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.13.0-49-generic root=/dev/mapper/vg0-root ro quiet splash

/proc/cmdline

to view which options were supplied to the kernel at the boot timne, we can view the file  /proc/cmdline

  • The Command uname in Action

 

:~$ uname -a
Linux uf01faf681c6854ad1c0a 3.13.0-49-generic #81~precise1-Ubuntu SMP Wed Mar 25 16:32:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~$ uname -s
Linux

:~$ uname -r
3.13.0-49-generic
:~$ uname -v
#81~precise1-Ubuntu SMP Wed Mar 25 16:32:15 UTC 2015
~$ uname -m
x86_64
~$ uname -p
x86_64
~$ uname -i
x86_64
$ uname -o
GNU/Linux

$ cat /boot/config-$(uname -r)

 

cat  /proc/versionLinux version 3.13.0-49-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #81~precise1-Ubuntu SMP Wed Mar 25 16:32:15 UTC 2015

cat  /proc/cmdlineBOOT_IMAGE=/vmlinuz-3.13.0-49-generic root=/dev/mapper/vg0-root ro quiet splash