uname命令

-- TOC --

uname,your name,你的名字,这个命令可以给出整个系统的基本信息。

$ 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 (non-portable)
  -i, --hardware-platform  print the hardware platform (non-portable)
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation at: <https://www.gnu.org/software/coreutils/uname>
or available locally via: info '(coreutils) uname invocation'
$ 
$ uname -s
Linux
$ uname -n
K
$ uname -r
5.14.14
$ uname -v
#1 SMP Tue Oct 26 10:20:53 CST 2021
$ uname -m
x86_64
$ uname -p
x86_64
$ uname -i
x86_64
$ uname -o
GNU/Linux
$ uname -a
Linux K 5.14.14 #1 SMP Tue Oct 26 10:20:53 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
$ 

kernel version,应该是编译kernel的时候产生的信息。支持SMP,编译时间!

本文链接:https://cs.pynote.net/sf/linux/shell/202201281/

-- EOF --

-- MORE --