`

查看linux系统信息命令(kernel、os、cpu等)

阅读更多

1、查看当前操作系统内核信息

[spark@S1PA222 tomcat6]$ uname -a
Linux S1PA222 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

2、查看当前操作系统发行版信息

[spark@S1PA222 tomcat6]$ cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

3、查看cpu型号

[spark@S1PA222 tomcat6]$ cat /proc/cpuinfo |grep name|cut -d ':' -f 2|uniq -c
      4  Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz

4、查看物理cpu颗数

[spark@S1PA222 tomcat6]$ cat /proc/cpuinfo |grep physical|uniq -c
      1 physical id     : 0
      1 address sizes   : 40 bits physical, 48 bits virtual
      1 physical id     : 0
      1 address sizes   : 40 bits physical, 48 bits virtual
      1 physical id     : 1
      1 address sizes   : 40 bits physical, 48 bits virtual
      1 physical id     : 1
      1 address sizes   : 40 bits physical, 48 bits virtual

5、查看cpu运行模式

[spark@S1PA222 tomcat6]$ getconf LONG_BIT
64

6、查看cpu是否支持64bit

[spark@S1PA222 tomcat6]$ cat /proc/cpuinfo |grep flags|grep 'lm'|wc -l
4

(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)

7、查看cpu信息概要

[spark@S1PA222 tomcat6]$ lscpu
Architecture:          x86_64   # 
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             2
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 44
Stepping:              2
CPU MHz:               2533.423
BogoMIPS:              5066.84
Hypervisor vendor:     VMware
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              12288K
NUMA node0 CPU(s):     0-3

8、查看cpu信息概要(比较全)

[spark@S1PA222 tomcat6]$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
stepping        : 2
cpu MHz         : 2533.423
cache size      : 12288 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
bogomips        : 5066.84
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:


processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
stepping        : 2
cpu MHz         : 2533.423
cache size      : 12288 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
bogomips        : 5066.84
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:


processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
stepping        : 2
cpu MHz         : 2533.423
cache size      : 12288 KB
physical id     : 1
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
bogomips        : 5066.84
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:


processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
stepping        : 2
cpu MHz         : 2533.423
cache size      : 12288 KB
physical id     : 1
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm arat epb dts
bogomips        : 5066.84
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

 

0
2
分享到:
评论
1 楼 string2020 2015-01-13  
centos7下面
cat /etc/issue
输出为空

相关推荐

    Linux操作系统基础教程

    Linux 操作系统基础教程 清华大学信息学院计算机系 目 录 前言..........................................................................................................................................

    Embedded.Linux.Systems.with.the.Yocto.Project.0133443248

    Build Complete Embedded Linux Systems Quickly and Reliably Developers are increasingly integrating Linux into their embedded systems: It supports virtually all hardware architectures and many ...

    WSL2-Linux-Kernel

    启用“适用于Linux的Windows操作系统”“虚拟机平台”(需要重启) wsl.exe -- install 下载 下载系统,引导程序,内核至同一文件夹 将groovy-server-cloudimg-amd64-wsl.rootfs.tar.gz重命名为install.tar.gz 配置...

    linux2.6.30.4驱动移植

    Kernel:2.6.30.4 os:ubuntu 8.10 gcc:arm-linux-gcc (3.4.4) cpu:s3c2410 介绍了LCD驱动 触摸屏驱动 网卡驱动 声卡驱动的详移植过程

    TencentOS-kernel:腾讯针对云的场景研发的服务器操作系统

    TencentOS服务器内核TencentOS Server(又名Tencent Linux简称Tlinux)是腾讯针对云的场景研发Linux操作系统,提供了专门的功能特性和性能优化,为云服务器实例中的应用程序提供了高效,且更加安全可靠的运行环境。...

    tinyos:类似于UNIX的玩具操作系统在x86 CPU上运行

    Tinyos 类似于UNIX的玩具操作系统在x86 CPU上运行用于交叉编译userland应用程序的经过修改的gcc和newlib。建立去做产品特点抢先式多任务处理分页好友内存分配中断(PIC) 计时器(PIT) 应用程序以用户模式运行ELF...

    嵌入式实时操作系统ucos-II 第二版 源代码

     本书是MicroC/OSII The Real Time Kernel一书的第2版本,在第1版本(V2.0)基础上做了重大改进与升级。通过对μC/OSII源代码的分析与描述,讲述了多任务实时的基本概念、竞争与调度算法、任务间同步与通信、存储与...

    Linux驱动初级——内核中断

    linux驱动开发文档 以下内容基于 linux-2.6.35 1 什么是中断 Linux 内核需要对连接到计算机上的所有硬件设备进行管理,毫无疑问这是它的份内事。 如果要管理这些设备,首先得和它们互相通信才行,一般有两种方案可...

    linux发行版支持的硬件兼容性列表大全

    Working Webcams with PWC - This is a web-based collaboration area for the next generation Philips Web Camera Linux Kernel Module. On this page, you find a list of the supported Webcams. ALSA Sound...

    《计算机操作系统》期末复习指导

    对考试很有帮助的.......... ...UNIX或Linux操作系统中文件系统的主要特点 (1)操作系统文件的目录组织是一个树形结构,从根结点到叶子称为文件的全路径名,文件可以由其全路径名唯一确定...

    ubench软件压缩包

    Other factors affecting ubench results include quality of the C-compiler, C-library, kernel version, OS scalability, amount of RAM, presence of other applications running at the same time, etc....

    S3C2410完全开发流程

    一个完整的嵌入式linux系统包含4部分内容:bootloader、parameters、kernel、root file system。3、4、5、6部分详细介绍了这4部分的内容,这是linux底层软件开发人员应该掌握的。通过学习这些章节,您可以详细了解到...

    安装和配置 Oracle 9i

    在基于 Linux 的单个 PC Server 的操作系统上,安装和配置 Oracle 9i RAC。 环境如下: 硬件:DELL PC Server 1650 2CPU/2G memory/1*36GB ...OS :Redhat Linux 7.2 Kernel 2.4.7 Oracle: Oracle 9i Release 2 9.2.0

    hashcat-4.0.0.7z

    Multi-OS (Linux, Windows and macOS) Multi-Platform (CPU, GPU, APU, etc., everything that comes with an OpenCL runtime) Multi-Hash (Cracking multiple hashes at the same time) Multi-Devices (Utilizing ...

    pi-estimation:使用蒙特卡洛模拟估算Pi数

    系统信息 Intel(R) Core(TM) i3-9100F CPU @ 3.60GHz (4 cores) RAM memory: 8103MB OS: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-16-amd64 (x86_64) gcc version: 8.3.0 sbcl version: 2.1.3 模拟 一百...

    softap_ap6212a0_tinav2.1_验证通过_旧版本的系统_20170915_1223没有外层目录.7z

    旧版本版本的全志R16平台的tinav2.1的系统打开softAP 2017/9/14 17:25 版本:V1.0 1、原始编译: rootroot@cm-System-Product-Name:~$ cd /home/wwt/ rootroot@cm-System-Product-Name:/home/wwt$ tar ...

    新版Android开发教程.rar

    � Android 更像一款桌面环境为 Java 的 Linux 操作系统。有助于 Google 实现其 " 随时随地为每个人提供信 息 " 的企业战略。 HTC HTC HTC HTC Dream/G1 Dream/G1 Dream/G1 Dream/G1 具体配置 硬件 3.17 英寸 HVGA ...

    ap6212a0_a33_sc3817r_神舟验证版本_借用nvram_ap6210这个配置文件_20170626_1834没有外层目录.7z

    rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4$ make ARCH=arm menuconfig [*] Networking support ---> <*> Bluetooth subsystem support ---> Bluetooth device drivers ---> < > ...

    SysMatricula:临时项目

    具有Kernel 3.10或更高版本(32位和64位)Linux Mac OS X 10.6 Snow Leopard或更高版本 -CPU类型:-32位:1 GHz(GHz)或更快的32位(x86)处理器-64位:1 GHz(GHz)或更快的64位(x64)处理器 -内存:-32位:2 ...

Global site tag (gtag.js) - Google Analytics