您的位置:首页 > 运维架构 > Linux

linux查看系统信息

2012-11-22 17:26 309 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: