mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
[Translated] 20150205 Inxi--Find System And Hardware Information On Linux.md
This commit is contained in:
parent
e080a6a262
commit
5abc1187f6
@ -1,173 +1,172 @@
|
|||||||
Translating by goreliu ...
|
Inxi——获取Linux的系统和硬件信息
|
||||||
|
================================================================================
|
||||||
Inxi: Find System And Hardware Information On Linux
|
|
||||||
================================================================================
|
我们已经展示了一些不同的[应用程序][1]和方法来获取Linux的系统和硬件信息。在这一系列,我们将看到如何使用**inxi**来获取这些详情信息。在论坛技术支持中,它可以作为调试工具,迅速确定用户的系统配置和硬件信息。
|
||||||
We already have shown different [applications][1] and ways to find the system and hardware information on Linux. In that series, today we will see how to find such details using **inxi**. It can be used for forum technical support, as a debugging tool, to quickly ascertain user system configuration and hardware.
|
|
||||||
|
**Inxi**是一个可以获取完整的系统和硬件详情信息的命令行工具,内容包括:
|
||||||
**Inxi** is a command line tool that can be used to find the complete system and hardware details such as;
|
|
||||||
|
- 硬件
|
||||||
- Hardware,
|
- CPU
|
||||||
- CPU,
|
- 磁盘驱动器
|
||||||
- Drivers,
|
- Xorg
|
||||||
- Xorg,
|
- 桌面环境
|
||||||
- Desktop,
|
- 内核
|
||||||
- Kernel,
|
- GCC版本
|
||||||
- GCC version,
|
- 进程
|
||||||
- Processes,
|
- 内存占用
|
||||||
- RAM usage,
|
- 和其他有用的信息
|
||||||
- and other useful information.
|
|
||||||
|
### 安装方法 ###
|
||||||
### Installation ###
|
|
||||||
|
Inxi在多数现代GNU/Linux操作系统的默认软件仓库中。所以我们可以简单地运行下列命令安装。
|
||||||
Inxi is available in the default repositories of most modern GNU/Linux operating systems. So, we can simply install it by running the following commands.
|
|
||||||
|
**在基于Debian的发行版:**
|
||||||
**On Debian based system:**
|
|
||||||
|
sudo apt-get install inxi
|
||||||
sudo apt-get install inxi
|
|
||||||
|
**在Fedora:**
|
||||||
**On Fedora:**
|
|
||||||
|
sudo yum install inxi
|
||||||
sudo yum install inxi
|
|
||||||
|
**在基于RHEL的发行版:**
|
||||||
**On RHEL based systems:**
|
|
||||||
|
安装EPEL软件仓库:
|
||||||
Install EPEL repository:
|
|
||||||
|
sudo yum install epel-release
|
||||||
sudo yum install epel-release
|
|
||||||
|
然后使用如下命令安装inxi:
|
||||||
Then, install inxi using command:
|
|
||||||
|
sudo yum install inxi
|
||||||
sudo yum install inxi
|
|
||||||
|
### 使用方法 ###
|
||||||
### Usage ###
|
|
||||||
|
在终端运行如下命令可以获取系统的概况信息。
|
||||||
To find the quick view of the system information, run the following command from Terminal.
|
|
||||||
|
inxi
|
||||||
inxi
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
CPU~Dual core Intel Core i3-2350M CPU (-HT-MCP-) clocked at Min:800.000Mhz Max:1200.000Mhz Kernel~3.13.0-45-generic x86_64 Up~6:41 Mem~1537.7/3861.3MB HDD~500.1GB(52.5% used) Procs~183 Client~Shell inxi~1.9.17
|
||||||
CPU~Dual core Intel Core i3-2350M CPU (-HT-MCP-) clocked at Min:800.000Mhz Max:1200.000Mhz Kernel~3.13.0-45-generic x86_64 Up~6:41 Mem~1537.7/3861.3MB HDD~500.1GB(52.5% used) Procs~183 Client~Shell inxi~1.9.17
|
|
||||||
|
当然,我们可以获取一个特定硬件的详情信息。比如获取**声音/音频硬件详情信息**,可以运行如下命令:
|
||||||
Ofcourse, we can retrieve a particular hardware details. For example to retrieve the **Audio/Sound hardware details**, run the following command:
|
|
||||||
|
inxi -A
|
||||||
inxi -A
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
|
||||||
Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
|
Sound: Advanced Linux Sound Architecture ver: k3.13.0-45-generic
|
||||||
Sound: Advanced Linux Sound Architecture ver: k3.13.0-45-generic
|
|
||||||
|
很酷是吧?
|
||||||
Cool, isn’t it?
|
|
||||||
|
同样的,你可以获取**显卡**的详情信息。
|
||||||
Likewise, you can retrieve the details of **Graphic card** information.
|
|
||||||
|
inxi -G
|
||||||
inxi -G
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
|
||||||
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
|
X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
|
||||||
X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
|
GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0
|
||||||
GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0
|
|
||||||
|
硬盘信息呢?也是可以的。运行如下命令来获取完整的**硬盘**信息。
|
||||||
What about harddisk information? That’s also possible. To view the full **harddisk** information, run the following command.
|
|
||||||
|
inxi -D
|
||||||
inxi -D
|
|
||||||
|
**示例输出:**
|
||||||
**Sample Output:**
|
|
||||||
|
Drives: HDD Total Size: 500.1GB (52.5% used) 1: id: /dev/sda model: ST9601325BD size: 500.1GB
|
||||||
Drives: HDD Total Size: 500.1GB (52.5% used) 1: id: /dev/sda model: ST9601325BD size: 500.1GB
|
|
||||||
|
显示Bios和主板详情信息:
|
||||||
To display the Bios and Motherboard details:
|
|
||||||
|
inxi -M
|
||||||
inxi -M
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
Machine: System: Dell (portable) product: Inspiron N5050
|
||||||
Machine: System: Dell (portable) product: Inspiron N5050
|
Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date: 08/03/2012
|
||||||
Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date: 08/03/2012
|
|
||||||
|
不只有硬性详情信息,它也可以显示我们系统中的**可用软件仓库列表**。
|
||||||
Not only hardware details, it can also displays the **list of available repositories** in our system.
|
|
||||||
|
inxi -r
|
||||||
inxi -r
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
Repos: Active apt sources in file: /etc/apt/sources.list
|
||||||
Repos: Active apt sources in file: /etc/apt/sources.list
|
deb http://ubuntu.excellmedia.net/archive/ trusty main restricted
|
||||||
deb http://ubuntu.excellmedia.net/archive/ trusty main restricted
|
deb-src http://ubuntu.excellmedia.net/archive/ trusty main restricted
|
||||||
deb-src http://ubuntu.excellmedia.net/archive/ trusty main restricted
|
deb http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted
|
||||||
deb http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted
|
deb-src http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted
|
||||||
deb-src http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted
|
deb http://ubuntu.excellmedia.net/archive/ trusty universe
|
||||||
deb http://ubuntu.excellmedia.net/archive/ trusty universe
|
.
|
||||||
.
|
.
|
||||||
.
|
Active apt sources in file: /etc/apt/sources.list.d/intellinuxgraphics.list
|
||||||
Active apt sources in file: /etc/apt/sources.list.d/intellinuxgraphics.list
|
deb https://download.01.org/gfx/ubuntu/14.04/main trusty main #Intel Graphics drivers
|
||||||
deb https://download.01.org/gfx/ubuntu/14.04/main trusty main #Intel Graphics drivers
|
Active apt sources in file: /etc/apt/sources.list.d/linrunner-tlp-trusty.list
|
||||||
Active apt sources in file: /etc/apt/sources.list.d/linrunner-tlp-trusty.list
|
Active apt sources in file: /etc/apt/sources.list.d/wseverin-ppa-trusty.list
|
||||||
Active apt sources in file: /etc/apt/sources.list.d/wseverin-ppa-trusty.list
|
deb http://ppa.launchpad.net/wseverin/ppa/ubuntu trusty main
|
||||||
deb http://ppa.launchpad.net/wseverin/ppa/ubuntu trusty main
|
|
||||||
|
Inxi还可以显示你所在位置的天气信息。感到意外吗?是的,它可以。
|
||||||
Inxi will also display the Weather details of your location. Surprised? Yes, It should.
|
|
||||||
|
inxi -W Erode,Tamilnadu
|
||||||
inxi -W Erode,Tamilnadu
|
|
||||||
|
这里**Erode**是区,**Tamilnadu**是印度的一个邦。
|
||||||
Here **Erode** is the District and **Tamilnadu** is a state in India.
|
|
||||||
|
示例输出:
|
||||||
Sample output:
|
|
||||||
|
Weather: Conditions: 79 F (26 C) - Clear Time: February 4, 6:00 PM IST
|
||||||
Weather: Conditions: 79 F (26 C) - Clear Time: February 4, 6:00 PM IST
|
|
||||||
|
### 查看完整的硬件详情信息 ###
|
||||||
### Viewing Complete Hardware details ###
|
|
||||||
|
厌倦了获取每种硬件的信息?你可以使用如下命令将所有信息一次列出:
|
||||||
Tired of finding each hardware details? Well, you can list all details at once using command:
|
|
||||||
|
inxi -F
|
||||||
inxi -F
|
|
||||||
|
**示例输出:**
|
||||||
**Sample output:**
|
|
||||||
|
System: Host: sk Kernel: 3.13.0-45-generic x86_64 (64 bit) Desktop: LXDE (Openbox 3.5.2) Distro: Ubuntu 14.04 trusty
|
||||||
System: Host: sk Kernel: 3.13.0-45-generic x86_64 (64 bit) Desktop: LXDE (Openbox 3.5.2) Distro: Ubuntu 14.04 trusty
|
Machine: System: Dell (portable) product: Inspiron N5050
|
||||||
Machine: System: Dell (portable) product: Inspiron N5050
|
Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date: 08/03/2012
|
||||||
Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date: 08/03/2012
|
CPU: Dual core Intel Core i3-2350M CPU (-HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
|
||||||
CPU: Dual core Intel Core i3-2350M CPU (-HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
|
Clock Speeds: 1: 800.00 MHz 2: 1000.00 MHz 3: 800.00 MHz 4: 800.00 MHz
|
||||||
Clock Speeds: 1: 800.00 MHz 2: 1000.00 MHz 3: 800.00 MHz 4: 800.00 MHz
|
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
|
||||||
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
|
X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
|
||||||
X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
|
GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0
|
||||||
GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0
|
Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
|
||||||
Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
|
Sound: Advanced Linux Sound Architecture ver: k3.13.0-45-generic
|
||||||
Sound: Advanced Linux Sound Architecture ver: k3.13.0-45-generic
|
Network: Card-1: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) driver: ath9k
|
||||||
Network: Card-1: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) driver: ath9k
|
IF: wlan0 state: up mac:
|
||||||
IF: wlan0 state: up mac:
|
Card-2: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
|
||||||
Card-2: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
|
IF: eth0 state: down mac:
|
||||||
IF: eth0 state: down mac:
|
Drives: HDD Total Size: 500.1GB (52.5% used) 1: id: /dev/sda model: ST9500325AS size: 500.1GB
|
||||||
Drives: HDD Total Size: 500.1GB (52.5% used) 1: id: /dev/sda model: ST9500325AS size: 500.1GB
|
Partition: ID: / size: 455G used: 245G (57%) fs: ext4 ID: /boot size: 236M used: 159M (72%) fs: ext2
|
||||||
Partition: ID: / size: 455G used: 245G (57%) fs: ext4 ID: /boot size: 236M used: 159M (72%) fs: ext2
|
ID: swap-1 size: 4.19GB used: 0.00GB (0%) fs: swap
|
||||||
ID: swap-1 size: 4.19GB used: 0.00GB (0%) fs: swap
|
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
|
||||||
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
|
Sensors: System Temperatures: cpu: 64.5C mobo: N/A
|
||||||
Sensors: System Temperatures: cpu: 64.5C mobo: N/A
|
Fan Speeds (in rpm): cpu: N/A
|
||||||
Fan Speeds (in rpm): cpu: N/A
|
Info: Processes: 186 Uptime: 6:52 Memory: 1547.2/3861.3MB Client: Shell (bash) inxi: 1.9.17
|
||||||
Info: Processes: 186 Uptime: 6:52 Memory: 1547.2/3861.3MB Client: Shell (bash) inxi: 1.9.17
|
|
||||||
|
就像上面你看到的那样,inxi显示出了完整的硬件详情信息。
|
||||||
As you see in the above, inxi displays the complete hardware details.
|
|
||||||
|
更多的细节可以参考man手册。
|
||||||
For more details, refer the man pages.
|
|
||||||
|
man inxi
|
||||||
man inxi
|
|
||||||
|
### 结论 ###
|
||||||
### Conclusion ###
|
|
||||||
|
你在寻找一个可以显示完整的系统和硬件详情信息的简单工具吗?那么不用再找了,inxi会提供你所需要的。并且,它还是在你系统默认的软件仓库中的轻量级工具。你还想要更多东西吗?试一试它,你不会失望。
|
||||||
Are you searching for a simple tool which displays your complete system and hardware details? Then, don’t look anywhere, inxi will give you what actually want. And, it is light weight tool available in your default repositories. What else you want more? Give it a try, you won’t be disappointed.
|
|
||||||
|
欢呼吧!
|
||||||
Cheers!
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
via: http://www.unixmen.com/inxi-find-system-hardware-information-linux/
|
||||||
via: http://www.unixmen.com/inxi-find-system-hardware-information-linux/
|
|
||||||
|
作者:[SK][a]
|
||||||
作者:[SK][a]
|
译者:[goreliu](https://github.com/goreliu)
|
||||||
译者:[译者ID](https://github.com/译者ID)
|
校对:[校对者ID](https://github.com/校对者ID)
|
||||||
校对:[校对者ID](https://github.com/校对者ID)
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
|
||||||
|
[a]:http://www.unixmen.com/author/sk/
|
||||||
[a]:http://www.unixmen.com/author/sk/
|
[1]:http://www.unixmen.com/screenfetch-bash-screenshot-information-tool/
|
||||||
[1]:http://www.unixmen.com/screenfetch-bash-screenshot-information-tool/
|
|
Loading…
Reference in New Issue
Block a user