Linux uname命令查看系统信息

会有一股神秘感。 提交于 2019-11-29 16:07:01

uname命令:

[sean@localhost ~]$ uname --help
用法:uname [选项]...
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

详细信息:

[sean@localhost ~]$ uname -a
Linux LX 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

内核名称(uname命令不带参数等价于uname -s):

[sean@localhost ~]$ uname
Linux

网络主机名:

[sean@localhost ~]$ uname -n
localhost.localdomain

内核发布号:

[sean@localhost ~]$ uname -r
2.6.18-164.el5

内核版本号:

[sean@localhost ~]$ uname -v
#1 SMP Tue Aug 18 15:51:48 EDT 2009

硬件架构:

[sean@localhost ~]$ uname -m
x86_64

操作系统:

[sean@localhost ~]$ uname -o
GNU/Linux

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!