linux查看内核、cpu、mem、gcc、libc信息的命令
来源:互联网 发布:淘宝扣24分有什么影响 编辑:程序博客网 时间:2024/06/06 02:29
查看系统内核版本命令:
uname -r
uname -a
more /etc/*release
more /etc/redhat-release
more /proc/version
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# uname -r
2.6.9-5.EL
[root@localhost ~]# more /etc/*release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@localhost ~]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@localhost ~]# more /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \r on an \m
[root@localhost ~]# more /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Se
p 19 18:00:54 EDT 2005
查看cpu信息
grep "model name" /proc/cpuinfo
[root@localhost ~]# grep "model name" /proc/cpuinfo
model name : Dual-Core AMD Opteron(tm) Processor 2216
[root@localhost ~]# more /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4849.66
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 2
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 1
siblings : 2
core id : 2
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 3
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 1
siblings : 2
core id : 3
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca mov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
查看cpu的位数:
getconf LONG_BIT
[root@localhost ~]# getconf LONG_BIT
64
[root@localhost ~]# ls /
bin dev home lib lost+found misc opt root selinux sys tftpboot update usr
boot etc initrd lib64 media mnt proc sbin srv test tmp updates var
要是在root下ls 有lib64文件夹说明系统64
查看libc、gcc版本
ldd /sbin/mii-tool
rpm -qa | grep glibc
gcc –version
[root@localhost ~]# ldd /sbin/mii-tool
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a9566c000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
[root@localhost ~]# rpm -qa | grep glibc
glibc-2.3.4-2.13
compat-glibc-2.3.2-95.30
glibc-utils-2.3.4-2.13
glibc-common-2.3.4-2.13
glibc-headers-2.3.4-2.13
glibc-devel-2.3.4-2.13
compat-glibc-2.3.2-95.30
glibc-profile-2.3.4-2.13
glibc-2.3.4-2.13
glibc-kernheaders-2.4-9.1.98.EL
compat-glibc-headers-2.3.2-95.30
glibc-devel-2.3.4-2.13
[root@localhost ~]# gcc --version
gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
查看内存信息
more /proc/meminfo
grep MemTotal /proc/meminfo
[root@localhost ~]# more /proc/meminfo
MemTotal: 4045176 kB
MemFree: 2424704 kB
Buffers: 96884 kB
Cached: 1027088 kB
SwapCached: 0 kB
Active: 807884 kB
Inactive: 618432 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 4045176 kB
LowFree: 2424704 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
Dirty: 24 kB
Writeback: 0 kB
Mapped: 346192 kB
Slab: 170056 kB
Committed_AS: 487688 kB
PageTables: 8492 kB
VmallocTotal: 536870911 kB
VmallocUsed: 1748 kB
VmallocChunk: 536868683 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
[root@localhost ~]# grep MemTotal /proc/meminfo
MemTotal: 4045176 kB
uname -r
uname -a
more /etc/*release
more /etc/redhat-release
more /proc/version
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# uname -r
2.6.9-5.EL
[root@localhost ~]# more /etc/*release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@localhost ~]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@localhost ~]# more /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \r on an \m
[root@localhost ~]# more /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Se
p 19 18:00:54 EDT 2005
查看cpu信息
grep "model name" /proc/cpuinfo
[root@localhost ~]# grep "model name" /proc/cpuinfo
model name : Dual-Core AMD Opteron(tm) Processor 2216
[root@localhost ~]# more /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4849.66
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 2
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 1
siblings : 2
core id : 2
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
processor : 3
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2216
stepping : 2
cpu MHz : 2412.409
cache size : 1024 KB
physical id : 1
siblings : 2
core id : 3
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca mov pat pse36 clflush mmx fxsr sse sse2 ht sysca
ll nx mmxext lm 3dnowext 3dnow pni cx16 ts fid vid ttp 芬+3
bogomips : 4816.89
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp [4] [5]
查看cpu的位数:
getconf LONG_BIT
[root@localhost ~]# getconf LONG_BIT
64
[root@localhost ~]# ls /
bin dev home lib lost+found misc opt root selinux sys tftpboot update usr
boot etc initrd lib64 media mnt proc sbin srv test tmp updates var
要是在root下ls 有lib64文件夹说明系统64
查看libc、gcc版本
ldd /sbin/mii-tool
rpm -qa | grep glibc
gcc –version
[root@localhost ~]# ldd /sbin/mii-tool
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a9566c000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
[root@localhost ~]# rpm -qa | grep glibc
glibc-2.3.4-2.13
compat-glibc-2.3.2-95.30
glibc-utils-2.3.4-2.13
glibc-common-2.3.4-2.13
glibc-headers-2.3.4-2.13
glibc-devel-2.3.4-2.13
compat-glibc-2.3.2-95.30
glibc-profile-2.3.4-2.13
glibc-2.3.4-2.13
glibc-kernheaders-2.4-9.1.98.EL
compat-glibc-headers-2.3.2-95.30
glibc-devel-2.3.4-2.13
[root@localhost ~]# gcc --version
gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
查看内存信息
more /proc/meminfo
grep MemTotal /proc/meminfo
[root@localhost ~]# more /proc/meminfo
MemTotal: 4045176 kB
MemFree: 2424704 kB
Buffers: 96884 kB
Cached: 1027088 kB
SwapCached: 0 kB
Active: 807884 kB
Inactive: 618432 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 4045176 kB
LowFree: 2424704 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
Dirty: 24 kB
Writeback: 0 kB
Mapped: 346192 kB
Slab: 170056 kB
Committed_AS: 487688 kB
PageTables: 8492 kB
VmallocTotal: 536870911 kB
VmallocUsed: 1748 kB
VmallocChunk: 536868683 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
[root@localhost ~]# grep MemTotal /proc/meminfo
MemTotal: 4045176 kB
- linux查看内核cpu mem gcc libc信息的命令
- linux查看内核、cpu、mem、gcc、libc信息的命令
- linux查看内核 cpu mem gcc libc命令
- 查看linux系统版本,内核,CPU,MEM,位数的相关命令
- 查看linux系统版本,内核,CPU,MEM,位数的相关命令
- 查看linux系统版本,内核,CPU,MEM,位数的相关命令
- Linux 查看内核,CPU,内存信息命令
- Linux查看内核、CPU等信息的命令
- Linux 查看CPU信息的命令
- 查看 Linux CPU 信息命令
- 查看linux内核版本信息的命令
- 查看Linux内核信息的命令
- Linux查看内核、CPU等信息的常用命令
- 查看Linux内核、cpu、内存等信息
- linux mem cpu io性能查看
- linux 查看cpu的信息
- Linux查看CPU的信息
- Linux命令查看linux版本的信息和查看内核的信息的命令
- 一步一学Linux与Windows 共享文件Samba
- Python正则表达式指南
- 关闭显示器自动休眠
- MyEclipse 快捷键
- linux可执行格式
- linux查看内核、cpu、mem、gcc、libc信息的命令
- 11g MEMORY_TARGET参数对SGA和PGA的影响 (转)
- No result defined for action
- java中的工厂模式
- Linux/Unix 进程间通信的各种方式及其比较
- 重新 format namenode datanode无法启动
- List<T> 与ArrayList 性能比较
- Python字符编码详解
- Window.open弹出窗口(转)