查看linux系统版本,内核,CPU,MEM,位数的相关命令
来源:百度文库 编辑:神马文学网 时间:2024/04/28 13:47:09
1.查看版本,内核
[oracle@svr15 ~]$ cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant)
Kernel \r on an \m
[oracle@svr15 ~]$ cat /proc/version
Linuxversion 2.6.9-5.ELsmp (bhcompile@decompose.build.redhat.com) (gccversion 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:30:39EST 2005
[oracle@svr15 ~]$ uname -r
2.6.9-5.ELsmp
2.查看cpu,mem
[oracle@svr15 ~]$ grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
[oracle@svr15 ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 0
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3956.73
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 0
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 3
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 3
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
[oracle@svr15 ~]$ grep MemTotal /proc/meminfo
MemTotal: 4147280 kB
[oracle@svr15 ~]$ free
total used free shared buffers cached
Mem: 4147280 4138220 9060 0 106124 3865896
-/+ buffers/cache: 166200 3981080
Swap: 4192924 0 4192924
3.查看操作系统位数
[oracle@svr15 ~]$ ls / #如果有lib64或这个目录,那操作系统就是64位的
bin boot dev etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys tmp usr var
[oracle@svr15 ~]$ getconf LONG_BIT
32
[oracle@svr15 ~]$ ldd /sbin/mii-tool
libc.so.6 => /lib/i686/libc.so.6 (0x00b2f000)
/lib/ld-linux.so.2 (0x00a49000)
[oracle@svr15 ~]$ cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant)
Kernel \r on an \m
[oracle@svr15 ~]$ cat /proc/version
Linuxversion 2.6.9-5.ELsmp (bhcompile@decompose.build.redhat.com) (gccversion 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:30:39EST 2005
[oracle@svr15 ~]$ uname -r
2.6.9-5.ELsmp
2.查看cpu,mem
[oracle@svr15 ~]$ grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
[oracle@svr15 ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 0
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3956.73
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 0
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 3
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
stepping : 6
cpu MHz : 1995.006
cache size : 64 KB
physical id : 3
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov patpse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitords_cpl tm2 xtpr
bogomips : 3981.31
[oracle@svr15 ~]$ grep MemTotal /proc/meminfo
MemTotal: 4147280 kB
[oracle@svr15 ~]$ free
total used free shared buffers cached
Mem: 4147280 4138220 9060 0 106124 3865896
-/+ buffers/cache: 166200 3981080
Swap: 4192924 0 4192924
3.查看操作系统位数
[oracle@svr15 ~]$ ls / #如果有lib64或这个目录,那操作系统就是64位的
bin boot dev etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys tmp usr var
[oracle@svr15 ~]$ getconf LONG_BIT
32
[oracle@svr15 ~]$ ldd /sbin/mii-tool
libc.so.6 => /lib/i686/libc.so.6 (0x00b2f000)
/lib/ld-linux.so.2 (0x00a49000)
查看linux系统版本,内核,CPU,MEM,位数的相关命令
查看window、Linux和Aix机CPU位数和操作系统版本 - tcsbupt的专栏 ...
使用 Linux 系统调用的内核命令
如何查看Linux操作系统的位数?
使用 Linux 系统调用的内核命令1
学习Linux系统的十一点建议 , linux,命令,学习,命令行,工具书,文档,系统,问题,安装,版本, ,
Linux 系统内核的调试
Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍 | LinuxSir.Org
查看oracle版本命令
Linux下查看版本号的命令
linux 查看文件内容的命令00
Linux下查看版本号的命令
Linux系统信息查看命令大全-学院-黑客基地
学习Linux系统的十一点建议 , linux,命令,学习,命令行,工具书,文档,系统,问题,安装,版本, , - CSDN 新闻
如何查看Linux操作系统的位数? - 最实用的Linux博客 - CSDN博客
Re: 关于Linux下高版本内核编译低版本内核的问题
黑客再爆Linux内核高危漏洞,一个命令可以攻击所有Linux系统
linux内存查看 free 命令
linux中查看系统资源占用情况的命令
Linux下查看文件和文件夹大小的df和du命令 - linux命令详解 - tanghongshan
Linux内核配置系统浅析
入门:Linux 2.6 内核的嵌入式系统应用
一个命令,快速查看你的系统几岁了
嵌入式Linux内核移植相关代码分析