linux下查询CPU信息与操作系统信息

1、系统查询

1.1、n@node1 ~]$ uname -a

Linux bobo 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux

1.2、n@node1 ~]$ file /bin/ls

/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

1.3、@node1 ~]$ getconf LONG_BIT

32

2、CPU

n@node1 ~]$ cat /proc/cpuinfo

猜你喜欢

转载自chembo.iteye.com/blog/1075496