自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Linux inxi 命令的三種使用方法

系統(tǒng) Linux
我在 Linux 上使用 inxi 來檢查我的筆記本電腦電池、CPU 信息,甚至天氣。

當(dāng)我在查詢有關(guān)筆記本電腦電池健康狀況的信息時(shí),我偶然發(fā)現(xiàn)了 ??inxi??。它是一個(gè)命令行系統(tǒng)信息工具,可提供有關(guān)你的 Linux 計(jì)算機(jī)(無論是筆記本電腦、臺(tái)式機(jī)還是服務(wù)器)的大量信息。

??inxi?? 命令采用 GPLv3 ??許可證??,許多 Linux 發(fā)行版都包含它。據(jù)它的 Git 存儲(chǔ)庫稱:“inxi 努力支持最廣泛的操作系統(tǒng)和硬件,從最簡單的消費(fèi)臺(tái)式機(jī)到最先進(jìn)的專業(yè)硬件和服務(wù)器?!?/p>

文檔很完善,并且該項(xiàng)目在線維護(hù)了完整的 ??手冊(cè)頁??。安裝后,你可以使用 ??man inxi?? 命令訪問系統(tǒng)上的手冊(cè)頁。

在 Linux 上安裝 inxi

通常,你可以從發(fā)行版的軟件倉庫或應(yīng)用中心安裝 ??inxi??。例如,在 Fedora、CentOS、Mageia 或類似發(fā)行版上:

$ sudo dnf install inxi

在 Debian、Elementary、Linux Mint 或類似發(fā)行版上:

$ sudo apt install inxi

你可以在 ??此處?? 找到有關(guān) Linux 發(fā)行版安裝選項(xiàng)的更多信息。

在 Linux 上使用 inxi 的 3 種方法

當(dāng)你安裝了 ??inxi??,你可以探索它的所有選項(xiàng)。有許多選項(xiàng)可幫助你了解有關(guān)系統(tǒng)的更多信息。最基本的命令提供了系統(tǒng)的基本概覽:

$ inxi -b

System:

Host: pop-os Kernel: 5.19.0-76051900-generic x86_64 bits: 64

Desktop: GNOME 42.3.1 Distro: Pop!_OS 22.04 LTS

Machine:

Type: Laptop System: HP product: Dev One Notebook PC v: N/A

serial: <superuser required>

Mobo: HP model: 8A78 v: KBC Version 01.03 serial: <superuser required>

UEFI: Insyde v: F.05 date: 06/14/2022

Battery:

ID-1: BATT charge: 50.6 Wh (96.9%) condition: 52.2/53.2 Wh (98.0%)

CPU:

Info: 8-core AMD Ryzen 7 PRO 5850U with Radeon Graphics [MT MCP]

speed (MHz): avg: 915 min/max: 400/4507

Graphics:

Device-1: AMD Cezanne driver: amdgpu v: kernel

Device-2: Quanta HP HD Camera type: USB driver: uvcvideo

Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati

unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu

resolution: 1920x1080~60Hz

OpenGL:

renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.47 5.19.0-76051900-generic)

v: 4.6 Mesa 22.0.5

Network:

Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter

driver: rtw_8822ce

Drives:

Local Storage: total: 953.87 GiB used: 75.44 GiB (7.9%)

Info:

Processes: 347 Uptime: 15m Memory: 14.96 GiB used: 2.91 GiB (19.4%)

Shell: Bash inxi: 3.3.13

1、顯示電池狀態(tài)

你可以使用 ??-B?? 選項(xiàng)檢查電池健康狀況。結(jié)果顯示系統(tǒng)電池 ID、充電情況和其他信息:

$ inxi -B

Battery:

ID-1: BATT charge: 44.3 Wh (85.2%) condition: 52.0/53.2 Wh (97.7%)

2、顯示 CPU 信息

使用 ??-C?? 選項(xiàng)了解有關(guān) CPU 的更多信息:

$ inxi -C

CPU:

Info: 8-core model: AMD Ryzen 7 PRO 5850U with Radeon Graphics bits: 64

type: MT MCP cache: L2: 4 MiB

Speed (MHz): avg: 400 min/max: 400/4507 cores: 1: 400 2: 400 3: 400

4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400

14: 400 15: 400 16: 400

??inxi?? 的輸出默認(rèn)使用彩色文本。你可以根據(jù)需要使用“顏色開關(guān)”進(jìn)行更改以提高可讀性。

命令選項(xiàng)是 ??-c?? 后跟 0 到 42 之間的任意數(shù)字以適合你的習(xí)慣。

$ inxi -c 42

以下是使用配色 5 和 7 的幾個(gè)不同選項(xiàng)的示例:

inxi -c 5 command

inxi -c 5 command

該軟件可以使用 Linux 系統(tǒng)中的傳感器顯示硬件溫度、風(fēng)扇速度和有關(guān)系統(tǒng)的其他信息。輸入 ??inxi -s?? 并讀取以下結(jié)果:

inxi -s

inxi -s

3、組合選項(xiàng)

如果支持,你可以組合 ??inxi?? 的選項(xiàng)以獲得復(fù)雜的輸出。例如,??inxi -S?? 提供系統(tǒng)信息,??-v?? 提供詳細(xì)輸出。將兩者結(jié)合起來可以得到以下結(jié)果:

$ inxi -S

System:

Host: pop-os Kernel: 5.19.0-76051900-generic x86_64 bits: 64

Desktop: GNOME 42.3.1 Distro: Pop!_OS 22.04 LTS


$ inxi -Sv

CPU: 8-core AMD Ryzen 7 PRO 5850U with Radeon Graphics (-MT MCP-)

speed/min/max: 634/400/4507 MHz Kernel: 5.19.0-76051900-generic x86_64

Up: 20m Mem: 3084.2/15318.5 MiB (20.1%) Storage: 953.87 GiB (7.9% used)

Procs: 346 Shell: Bash inxi: 3.3.13

額外功能:查看天氣

??inxi?? 可以收集到的信息并不只有你的電腦。使用 ??-w?? 選項(xiàng),你還可以獲取你所在地區(qū)的天氣信息:

$ inxi -w

Weather:

Report: temperature: 14 C (57 F) conditions: Clear sky

Locale: Wellington, G2, NZL

current time: Tue 30 Aug 2022 16:28:14 (Pacific/Auckland)

Source: WeatherBit.io

你可以通過指定你想要的城市和國家以及 ??-W?? 來獲取世界其他地區(qū)的天氣信息:

$ inxi -W rome,italy

Weather:

Report: temperature: 20 C (68 F) conditions: Clear sky

Locale: Rome, Italy current time: Tue 30 Aug 2022 06:29:52

Source: WeatherBit.io

總結(jié)

有許多很棒的工具可以收集有關(guān)你的計(jì)算機(jī)的信息。我根據(jù)機(jī)器、桌面或我的心情使用不同的工具。你最喜歡的系統(tǒng)信息工具是什么?

?

責(zé)任編輯:龐桂玉 來源: Linux中國
相關(guān)推薦

2021-11-26 11:07:14

cowsay命令Linux

2010-03-04 10:44:04

Linux ftp命令

2009-09-05 10:26:20

Linux壓縮打包命令Linux命令

2009-08-04 08:32:06

Linux Find命Linux Find使用方法

2022-02-26 08:39:09

LinuxScp命令

2010-03-05 15:20:25

Linux man命令

2012-05-11 10:13:54

2023-12-16 13:15:00

Linux服務(wù)器IP方法

2022-08-19 11:17:09

Linux

2012-05-09 10:52:37

Linux監(jiān)控命令

2019-08-30 17:24:41

microservic微服務(wù)

2009-07-08 12:56:32

編寫Servlet

2012-05-10 10:53:10

Linuxhistory

2009-12-09 14:22:44

2015-12-11 09:24:38

加密數(shù)據(jù)Linux

2011-08-01 17:41:09

Oraclesqlplus

2019-07-25 07:14:03

LinuxSync操作系統(tǒng)

2022-05-26 10:57:51

機(jī)器人人工智能

2009-08-09 09:27:41

linux命令行瀏覽器linux打開瀏覽器命linux命令行

2010-03-08 17:04:17

Linux df命令
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)