安装Inxi
inxi目前在标准的Ubuntu和Fedora存储库中可用。
以下是Ubuntu和Fedora Linux的安装说明:
UBUNTU: $sudo apt-get install inxi FEDORA: $sudo yum install inxi
Linux查看主板和BIOS信息
$inxi -M Machine: System: LENOVO product: 4286CTO v: ThinkPad X220 Mobo: LENOVO model: 4286CTO Bios: LENOVO v: 8DET61WW (1.31 ) date: 04/25/2012
快速系统和硬件概述
不带任何选项的inxi打印快速系统概览。
$inxi CPU~Dual core Intel Core i7-2640M (-HT-MCP-) clocked at 815 Mhz Kernel~3.14.6-200.fc20.x86_64 x86_64 Up~2:31 Mem~2558.2/7868.2MB HDD~160.0GB(63.9% used) Procs~198 Client~Shell inxi~2.1.28
完整的系统和硬件信息
使用-f
选项查看有关整个系统的完整信息:
$inxi -F System: Host: localhost.localdomain Kernel: 3.14.6-200.fc20.x86_64 x86_64 (64 bit) Desktop: Gnome 3.10.4 Distro: Fedora release 20 (Heisenbug) Machine: System: LENOVO product: 4286CTO v: ThinkPad X220 Mobo: LENOVO model: 4286CTO Bios: LENOVO v: 8DET61WW (1.31 ) date: 04/25/2012 CPU: Dual core Intel Core i7-2640M (-HT-MCP-) cache: 4096 KB Clock Speeds: 1: 3309 MHz 2: 3353 MHz 3: 3309 MHz 4: 3309 MHz Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller Display Server: Fedora X.org 1.14.4 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.1.5 Audio: Card-1 Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel Card-2 Licensed by Sony Entertainment America driver: USB Audio Sound: Advanced Linux Sound Architecture v: k3.14.6-200.fc20.x86_64 Network: Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e IF: em1 state: down mac: 3c:97:0e:02:98:c8 Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi IF: wlp3s0 state: up mac: 8c:70:5a:92:f6:e0 Drives: HDD Total Size: 160.0GB (63.9% used) ID-1: /dev/sda model: INTEL_SSDSA2BW16 size: 160.0GB Partition: ID-1:/size: 50G used: 14G (31%) fs: ext4 dev: /dev/dm-2 ID-2: /boot size: 477M used: 141M (32%) fs: ext4 dev: /dev/sda1 ID-3: /home size: 90G used: 74G (88%) fs: ext4 dev: /dev/dm-3 ID-4: swap-1 size: 8.34GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 71.0C mobo: N/A Fan Speeds (in rpm): cpu: 3893 Info: Processes: 200 Uptime: 2:33 Memory: 2672.2/7868.2MB Client: Shell (bash) inxi: 2.1.28
检索存储库信息
$inxi -r Repos: Active yum sources in file: /etc/yum.repos.d/google-chrome.repo google-chrome ~ http://dl.google.com/linux/chrome/rpm/stable/x86_64 Active yum sources in file: /etc/yum.repos.d/rpmfusion-free-updates.repo rpmfusion-free-updates ~ http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-$releasever&arch=$basearch Active yum sources in file: /etc/yum.repos.d/rpmfusion-free.repo rpmfusion-free ~ http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch Active yum sources in file: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo rpmfusion-nonfree-updates ~ http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch Active yum sources in file: /etc/yum.repos.d/rpmfusion-nonfree.repo rpmfusion-nonfree ~ http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-$releasever&arch=$basearch Active yum sources in file: /etc/yum.repos.d/virtualbox.repo virtualbox ~ http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
检索另外信息
如果任何系统或者硬件组件的附加数据可用,-xxx
选项将指示inxi显示尽可能多的信息。例如,以下是有关网卡的标准信息:
$inxi -N Network: Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi
使用“-xxx”选项,我们可以看到上述输出的附加信息:
$inxi -Nxxx Network: Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e v: 2.3.2-k port: 4080 bus-ID: 00:19.0 chip-ID: 8086:1502 Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: in-tree:d bus-ID: 03:00.0 chip-ID: 8086:0085
检索天气信息
因为它已经提到了Inxi也能够提供当前的当地天气信息:
$inxi -w Weather: Conditions: 53 F (12 C) - Clear Time: June 25, 11:05 AM CST
对于其他位置,使用“-w”选项,然后使用TZNAME位置。
例如:
$inxi -W Bratislava,Slovakia Weather: Conditions: 54 F (12 C) - Clear Time: June 25, 4:11 AM CEST
日期:2020-07-07 20:54:58 来源:oir作者:oir