# Inxi：功能強大的獲取Linux系統信息的命令行工具

### apt install inxi

在使用 Inxi 之前，用下面的命令查看 Inxi 所有依賴和推薦的應用，以及各種目錄，並顯示需要安裝哪些包來支持給定的功能。

inxi --recommends

```
glxinfo: -G glx info............................................................................. Present
wmctrl: -S active window manager (fallback)...................................................... Missing
xdpyinfo: -G multi screen resolution............................................................. Present
xprop: -S desktop data........................................................................... Present
xrandr: -G single screen resolution.............................................................. Present
 
The following recommended display information programs are missing:
Program: wmctrl ~ Install package: wmctrl
```

Inxi  -S 查看本機系統信息（主機名、核心訊息、桌面環境和發行版）

inxi -M 選項查看機型、產品 ID 、機器版本、主機板、製造商和 BIOS 等信息

inxi -C 查看完整的 CPU 信息，包括每核 CPU 的頻率及可用的最大主頻。

inxi -G 查看顯卡信息，包括顯卡類型、顯示伺服器、系統解析度、GLX 渲染器和 GLX 版本等等（GLX 是一個 X 視窗系統的 OpenGL 擴展）。

inxi -A 查看音效卡

inxi -N 查看網卡

inxi -D 查看硬碟

inxi -b 選項顯示上述信息的簡要系統信息

inxi -p 選項輸出完整的硬碟分區信息，包括每個分區的分區大小、已用空間、可用空間、文件系統以及文件系統類型。

inxi -F 選項查看可以完整的 Inxi 輸出

inxi -I 監控 Linux 進程的內存使用 使用下面的命令查看進程數、開機時間和記憶體使用情況：

-t 選項和 c 選項一起使用查看前 5 個最消耗 CPU 資源的程序，查看最消耗記憶體的程序使用 -t 選項和 m 選項； -t選項 和 cm 選項一起使用顯示前 5 個最消耗 CPU 和記憶體資源的程序。

```
inxi -t cm
Processes: CPU top: 5 
           1: cpu: 10.1% command: cockpit-bridge pid: 23514 
           2: cpu: 4.3% command: chromium pid: 11317 
           3: cpu: 3.4% command: chromium pid: 23406 
           4: cpu: 3.4% command: chromium pid: 24737 
           5: cpu: 3.0% command: chromium pid: 4443 
           System RAM: total: 15.59 GiB used: 3.20 GiB (20.5%) 
           Memory top: 5 
           1: mem: 390.4 MiB (2.4%) command: chromium pid: 4443 
           2: mem: 351.6 MiB (2.2%) command: chromium pid: 3166 
           3: mem: 304.6 MiB (1.9%) command: chromium pid: 3135 
           4: mem: 291.4 MiB (1.8%) command: chromium pid: 24737 
           5: mem: 240.2 MiB (1.5%) command: chromium pid: 3633 
```

inxi -Nni 監控網絡設備：列出網卡信息，包括接口信息、網路頻率、mac 地址、網卡狀態和IP 等。

監控 CPU 溫度和電腦風扇轉速 可以使用 -s 選項監控&#x20;

inxi -s

inxi -W Tainan,Taiwan  可以查看天氣，-w 選項查看本地區的天氣情況，使用 -W  設置另外的地區。

inxi -W Tainan,Taiwan

Weather: Temperature: 29.2 C (85 F) Conditions: Clear sky Current Time: 2019-11-25 11:52:24 Source: WeatherBit.io

inxi -r 查看套件庫


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/linux-cli/untitled-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
