Linux硬件信息查询命令(1)
系统大全为您提供
uname -a # 查看内核/操作系统/CPU信息
Linux hostname 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
head -n 1 /etc/issue # 查看操作系统版本
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
cat /procuinfo # 查看CPU信息
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
stepping : 2
cpu MHz : 2933.582
cache size : 12288 KB
physical id : 1
siblings : 12
core id : 0
cpu cores : 6
apicid : 32
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 tm syscall nx pdpe1gb rdtscp lm constant_tsc ida pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 5871.13
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
hostname # 查看计算机主机名
hostname.com.cn
lspci -tv # 列出所有PCI设备
-[0000:00]-+-00.0 Intel Corporation 5500 I/O Hub to ESI Port
+-01.0-[02]--+-00.0 Broadcom Corporation NetXtreme II BCM57711E 10-G igabit PCIe
| -00.1 Broadcom Corporation NetXtreme II BCM57711E 10-G igabit PCIe
+-02.0-[0d]--
+-03.0-[03-05]--
+-07.0-[06-08]--
+-08.0-[11]--
+-09.0-[09-0b]--+-00.0 QLogic Corp. ISP2432-based 4Gb Fibre Channel
lsusb -tv # 列出所有USB设备
Bus# 6
`-Dev# 1 Vendor 0x0000 Product 0x0000
`-Dev# 2 Vendor 0x03f0 Product 0x1027
Bus# 5
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 4
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 3
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 2
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 1
`-Dev# 1 Vendor 0x0000 Product 0x0000
lsmod # 列出加载的内核模块 env # 查看环境变量资源
_=/bin/env
CVS_RSH=ssh
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/root
INPUTRC=/etc/inputrc
KDEDIR=/usr
KDE_IS_PRELINKED=1
KDE_NO_IPV6=1
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=root
MAIL=ar/spool/mail/root
PATH=/usrb64-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
free -m # 查看内存使用量和交换区使用量
total used free shared buffers cached
Mem: 48295 9647 38648 0 1165 4067
-/+ buffers/cache: 4413 43881
Swap: 3999 0 3999
df -h # 查看各分区使用情况
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootVG-root
83G 7.4G 72G 10% /
/dev/mapper/rootVG-tmp
3.9G 137M 3.6G 4% /tmp
/dev/mapper/rootVG-var
31G 5.1G 24G 18% ar
du -sh <目录名> # 查看指定目录的大小
# du -sh /tmp
84K /tmp
grep MemTotal /proc/meminfo # 查看内存总量
<pre name="code" class="plain"># <span style="font-family: Arial, Helvetica, sans-serif;">grep MemTotal /proc/meminfo</span>
MemTotal: 16432172 kB
grep MemFree /proc/meminfo # 查看空闲内存量
# grep MemFree /proc/meminfo
MemFree: 12647164 kB
uptime # 查看系统运行时间、用户数、负载
14:15:28 up 4 days, 2:56, 1 user, load average: 1.17, 1.15, 1.10
cat /proc/loadavg # 查看系统负载
# cat /proc/loadavg
1.11 1.14 1.09 1/546 5175
磁盘和分区
mount | column -t # 查看挂接的分区状态
/dev/mapper/rootVG-root on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/rootVG-tmp on /tmp type ext3 (rw)
fdisk -l # 查看所有分区
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 19 152586 83 Linux
/dev/cciss/c0d0p2 20 17844 143179312+ 8e Linux LVM
Disk /dev/sdc: 384.3 GB, 384399572992 bytes
255 heads, 63 sectors/track, 46733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sde: 225.4 GB, 225485783040 bytes
255 heads, 63 sectors/track, 27413 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
swapon -s # 查看所有交换分区
Filename Type Size Used Priority
/dev/mapper/rootVG-swap partition 16777208 0 -1
hdparm -i /deva # 查看磁盘参数(仅适用于IDE设备)dmesg | grep IDE # 查看启动时IDE设备检测状况
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Probing IDE interface ide0...
Probing IDE interface ide1...
网络
ifconfig # 查看所有网络接口的属性
bond0 Link encap:Ethernet HWaddr F4:CE:46:7E:D7:68
inet addr:10.56.236.101 Bcast:10.56.236.127 Mask:255.255.255.128
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:196625663 errors:0 dropped:0 overruns:0 frame:0
TX packets:166879878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30475502617 (28.3 GiB) TX bytes:34248137790 (31.8 GiB)
eth0 Link encap:Ethernet HWaddr F4:CE:46:7E:D7:68
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:196625663 errors:0 dropped:0 overruns:0 frame:0
TX packets:166879878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30475502617 (28.3 GiB) TX bytes:34248137790 (31.8 GiB)
以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。
本文来自系统大全http://www.win7cn.com/如需转载请注明!推荐:win7纯净版
相关文章
- 微软 Win11 Canary 预览版 27975 发布!附补丁文件下载
- 仅影响商店应用!Win11 微软商店取消永久停更,仅支持 1-5 周暂停
- 微软 Win11 23H2 RP 22631.6132 预览版发布!更新内容一览
- 微信电脑版 4.1.2 正式版发布:删好友可留记录
- 微软发布紧急带外更新 KB5070773 修复 WinRE USB 键鼠失灵
- Windows11 25H2镜像文件下载地址
- 英特尔发布 32.0.101.8136 显卡驱动!附文件下载
- 微软 Win11 24H2 推送 9 月可选更新补丁 KB5065789!
- 微软Win11 Dev 26220.6760(KB5065793)发布!附补丁文件下载
- 微软 Win11 Beta 预览版 Build 26120.6760 发布!
系统下载排行榜71011xp
番茄花园 Win7 64位 快速稳定版
2【纯净之家】Windows7 64位 全新纯净版
3【纯净之家】Windows7 SP1 64位 全补丁旗舰版
4JUJUMAO Win7 64位 最新纯净版
5【纯净之家】Windows7 32位 全新纯净版
6【纯净之家】Win7 64位 Office2007 办公旗舰版
7【雨林木风】Windows7 64位 装机旗舰版
8【电脑公司】Windows7 64位 免费旗舰版
9JUJUMAO Win7 64位旗舰纯净版
10【深度技术】Windows7 64位 官方旗舰版
【纯净之家】Windows10 22H2 64位 专业工作站版
2【纯净之家】Windows10 22H2 64位 游戏优化版
3【纯净之家】Windows10 企业版 LTSC 2021
4【纯净之家】Windows10企业版LTSC 2021 纯净版
5【深度技术】Windows10 64位 专业精简版
6联想Lenovo Windows10 22H2 64位专业版
7JUJUMAO Win10 X64 极速精简版
8【雨林木风】Windows10 64位 专业精简版
9深度技术 Win10 64位国庆特别版
10【纯净之家】Win10 64位 Office2007 专业办公版
【纯净之家】Windows11 23H2 64位 游戏优化版
2【纯净之家】Windows11 23H2 64位 专业工作站版
3【纯净之家】Windows11 23H2 64位 纯净专业版
4风林火山Windows11下载中文版(24H2)
5【纯净之家】Windows11 23H2 64位 企业版
6【纯净之家】Windows11 23H2 64位 中文家庭版
7JUJUMAO Win11 24H2 64位 专业版镜像
8【纯净之家】Windows11 23H2 64位专业精简版
9【纯净之家】Windows11 23H2 64位 纯净家庭版
10Windows11 23H2 64位 官方正式版 V22631.6060
深度技术 GHOST XP SP3 电脑专用版 V2017.03
2深度技术 GGHOST XP SP3 电脑专用版 V2017.02
3Win7系统下载 PCOS技术Ghost WinXP SP3 2017 夏季装机版
4番茄花园 GHOST XP SP3 极速体验版 V2017.03
5萝卜家园 GHOST XP SP3 万能装机版 V2017.03
6雨林木风 GHOST XP SP3 官方旗舰版 V2017.03
7电脑公司 GHOST XP SP3 经典旗舰版 V2017.03
8雨林木风GHOST XP SP3完美纯净版【V201710】已激活
9萝卜家园 GHOST XP SP3 完美装机版 V2016.10
10雨林木风 GHOST XP SP3 精英装机版 V2017.04
热门教程
装机必备 更多+
重装工具