inxi:快速获取系统信息

| linux

最近看邮件列表看见有用户使用inxi命令来显示自己的系统信息,看起来很好用。我试了一下,在 ubuntu 上可以直接用apt安装。根据其 man 手册,的确利于用户使用:

inxi is a command line system information script built for for console and IRC. It is also used for forum technical support, as a debugging tool, to quickly ascertain user system configuration and hardware. inxi shows system hardware, CPU, drivers, Xorg, Desktop, Kernel, GCC ver‐ sion(s), Processes, RAM usage, and a wide variety of other useful infor‐ mation.

我使用inxi -F查看了几台机器的信息:

腾讯服务器:

System:    Host: VM-64-212-ubuntu Kernel: 4.4.0-91-generic x86_64 (64 bit)
           Console: tty 1 Distro: Ubuntu 16.04 xenial
Machine:   System: Bochs product: Bochs
           Mobo: N/A model: N/A Bios: Bochs v: Bochs date: 01/01/2011
CPU:       Single core Intel Xeon E5-26xx 0 (-MCP-) cache: 4096 KB
           speed: 2493 MHz (max)
Graphics:  Card: Cirrus Logic GD 5446
           Display Server: N/A driver: N/A
           tty size: 83x21 Advanced Data: N/A out of X
Network:   Card: Red Hat Virtio network device driver: virtio-pci
           IF: eth0 state: up speed: -1 duplex: unknown mac: 52:54:00:5e:30:2b
Drives:    HDD Total Size: 53.7GB (5.8% used)
           ID-1: /dev/vda model: N/A size: 53.7GB
Partition: ID-1: / size: 50G used: 3.0G (7%) fs: ext3 dev: /dev/vda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 115 Uptime: 92 days Memory: 205.7/864.3MB
           Init: systemd runlevel: 5 Client: Shell (bash) inxi: 2.2.35 

iMac (21.5-inch, Mid 2011) (很多信息不全):

System:    Host: iMac.lan Kernel: Darwin 17.4.0 x86_64 bits: 64 Desktop: N/A
           OS: Mac OS X 10.13.3
Machine:   Using dmidecode: unknown error occurred
Battery    Using dmidecode: unknown error occurred
CPU:       Cores: 4 model: Intel Core i5-2400S (-MCP-) cache: 256 kB
           speed: 2500 MHz
Graphics:  Card: Failed to Detect Video Card!
           Display Server: X.Org 1.18.4 driver: N/A Resolution: 1920x1058@1.00hz
           OpenGL: renderer: AMD Radeon HD 6750M OpenGL Engine
           version: 2.1 ATI-1.60.26
Network:   Card: Failed to Detect Network Card!
Drives:    No HDD Info. /var/run/dmesg.boot not readable?
Partition: ID-1: / size: 465Gi used: 395Gi (85%) fs: hfs dev: /dev/disk0s2
Sensors:   This feature is not yet supported for BSD systems.
Info:      Processes: 272 Uptime: 2:54 Memory: N/A
           Client: Shell (-bash) inxi: 2.3.56 

ThinkPad X230s:

System:    Host: yxy-ThinkPad-X230s Kernel: 4.10.0-42-generic x86_64 (64 bit) Console: tty 20
           Distro: Ubuntu 16.04 xenial
Machine:   System: LENOVO (portable) product: 20AHS00000 v: ThinkPad X230s
           Mobo: LENOVO model: 20AHS00000 v: 0B98413 STD
           Bios: LENOVO v: GGET18WW (1.06 ) date: 07/18/2013
CPU:       Dual core Intel Core i5-3337U (-HT-MCP-) cache: 3072 KB 
           clock speeds: max: 2700 MHz 1: 799 MHz 2: 799 MHz 3: 799 MHz 4: 799 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           Display Server: N/A drivers: (unloaded: fbdev,vesa)
           tty size: 98x22 Advanced Data: N/A out of X
Audio:     Card Intel 7 Series/C210 Series Family High Definition Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.10.0-42-generic
Network:   Card-1: Intel 82579V Gigabit Network Connection driver: e1000e
           IF: enp0s25 state: down mac: 28:d2:44:29:4b:73
           Card-2: Realtek RTL8723AE PCIe Wireless Network Adapter driver: rtl8723ae
           IF: wlp3s0 state: up mac: 0c:84:dc:a5:5a:d5
Drives:    HDD Total Size: 1024.2GB (1.9% used)
           ID-1: /dev/sda model: WDC_WD10JPVT size: 1000.2GB
           ID-2: /dev/sdb model: LITEONIT_LSS size: 24.0GB
Partition: ID-1: / size: 31G used: 12G (39%) fs: ext4 dev: /dev/sda11
           ID-2: /boot size: 269M used: 137M (55%) fs: ext4 dev: /dev/sda9
           ID-3: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda10
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 46.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 230 Uptime: 31 min Memory: 998.5/7800.9MB Init: systemd runlevel: 5
           Client: Shell (bash) inxi: 2.2.35