linux查看系统信息

uname命令:

[root@LX_TEST ~]$ 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

详细信息:

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

 内核名称(等价于uname -s):

[root@LX_TEST ~]$ uname
Linux

 网络主机名:

[root@LX_TEST ~]$ uname -n
LX_TEST

 系统发布版本:

[root@LX_TEST ~]$ uname -r
2.6.18-164.el5

版本的详细信息:

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

硬件架构:

[root@LX_TEST ~]$ uname -m
x86_64

 操作系统:

[root@LX_TEST ~]$ uname -o
GNU/Linux
posted @ 2012-11-22 17:26  心意合一  阅读(234)  评论(0编辑  收藏  举报