linux如何查询系统信息
2014-04-29 09:31
281 查看
linux如何查询系统信息
2011-08-23 18:27:03| 分类:应用服务器搭建 | 标签:linux
|举报
|字号大中小 订阅
cat /proc/cpuinfo
或者vim /proc/cpuinfo
查看系统信息
cat /proc/cpuinfo - CPU (i.e. vendor, Mhz, flags like mmx)
cat /proc/interrupts - 中断
cat /proc/ioports - 设备IO端口
cat /proc/meminfo - 内存信息(i.e. mem used, free, swap size)
cat /proc/partitions - 所有设备的所有分区
cat /proc/pci - PCI设备的信息
cat /proc/swaps - 所有Swap分区的信息
cat /proc/version - Linux的版本号 相当于 uname -r
uname -a - 看系统内核等信息
查看linux系统版本方法:
cat /etc/redhat-release
cat /etc/issue
cat /proc/version
查看磁盘空间大小:
df -m
cat /etc/issue 查看操作系统版本
cat /etc/inittab 查看启动项
cat /proc/cpuinfo 查看cpu信息
uname -a 系统版本
df -h 查硬盘
cat /etc/passwd 查看所有用户的列表
cat /etc/group 查看用户组
du -sh 查看当前文件夹大小
这里linux下使用dmidecode查看硬件信息
dmidecode is a tool for dumping a computer''''s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system''''s hardware components, as well as other useful pieces of information such as serial numbers
and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.
dmidecode可以全面的显示bios、cpu、内存等硬件信息。
查看主板的序列号
dmidecode | grep "Serial Number"
显示物理内存块数
dmidecode |grep -A16 "Memory Device$"
显示CPU信息
dmidecode |grep -A42 "Processor"|more
另外:
grep -An (A和n之间也可以有空格) 输出包含指定字符串的行及该行后续的n行
/usr/sbin/dmidecode | grep "Serial Number"可以读出计算机的标示号,当然这只对正规品牌的机器有效,如DELL、HP之类,取出的值和机器上贴的值是对应的,而类似清华同方之流的兼容机,基本上读不出任何有意义的数据。
相关文章推荐
- 如何查询Linux系统的一些相关信息
- linux下如何查询系统信息?
- linux 如何查看硬盘大小,内存大小等系统信息及硬件信息
- LINUX,HPUX,AIX系统查询主机配置信息
- linux如何查看系统信息
- 常用Linux系统信息查询命令
- linux如何查看系统信息
- 如何通过终端查看 linux 的系统信息
- 如何使用Neofetch个性化显示Linux系统信息
- linux系统中如何通过程序来获知系统信息
- Linux 基本系统信息查询
- 总结:linux查询系统内各应用的版本信息命令
- 如何在linux系统上获取命令的帮助信息
- linux系统上获取命令的帮助信息,man文档的章节是如何划分的
- linux如何查看系统信息
- Linux如何查看系统当前登录用户信息,linux su命令参数及用法详解(linux切换用户命令)
- linux系统信息查询: 内核版本,分支(发行版)名称,位数,cpu信息等
- Linux系统环境下如何获得U盘拔插的信息
- 如何记录 Linux 的系统运行时间的统计信息
- 查询Linux系统信息