新花樣 一個簡單的跨平台 shell 腳本,它掃描系統信息並將其打印到終端,在輸出旁邊顯示 ASCII 圖像等。顯示的一些信息是:
- 操作系統
- 內核版本
- 外殼類型
- 已安裝包數
- 系統正常運行時間
- 屏幕分辨率
- 中央處理器信息
- GPU 細節
- 主題詳情
- 內存容量
Neofetch 支持 Linux、Unix、iOS 和 Windows 操作系統。 讓我們看看如何在 Ubuntu、Debian、Arch Linux 等不同的 Linux 發行版上安裝 Neofetch。
如何在 Ubuntu 上安裝 Neofetch
Neofetch 可在以下位置獲得: Ubuntu 默認存儲庫請先更新您的系統。
$ sudo apt update
使用 apt 命令安裝 neofetch。
$ sudo apt install neofetch
這是安裝的 Neofetch 版本 7.0.0 在我的 Ubuntu 20.04 系統上。
要從仍可用於 Ubuntu 18.04/20.04 和 Mint 19 的 PPA 安裝 Neofetch,首先添加第 3 方 Neofetch 存儲庫,如下所示:
add-apt-repository ppa:dawidd0811/neofetch
輸出
CLI script to show your system's info and display an image using w3m.
More info: https://launchpad.net/~dawidd0811/+archive/ubuntu/neofetch
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpipjmo2cm/secring.gpg' created
gpg: keyring `/tmp/tmpipjmo2cm/pubring.gpg' created
gpg: requesting key 4221BA96 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpipjmo2cm/trustdb.gpg: trustdb created
gpg: key 4221BA96: public key "Launchpad PPA for dawidd6" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
更新源列表
apt-get update
最後,安裝neofetch
apt-get install neofetch
要查看系統信息,請運行 neofetch 命令。
neofetch
輸出

如何在 Debian 上安裝 Neofetch
要在 Debian 9 上安裝 Neofetch,首先添加第 3 方 Neofetch 存儲庫,如下所示:
echo "deb https://dl.bintray.com/dawidd6/neofetch jessie main" | sudo tee -a /etc/apt/sources.list
然後使用如下所示的命令附加 Neofetch 密鑰。
curl -L "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -o Release-neofetch.key && sudo apt-key add Release-neofetch.key && rm Release-neofetch.key
使用以下命令更新系統以更新源列表。
apt-get update
最後,安裝 Neofetch
apt-get install neofetch
要啟動 Neofetch,請運行:
neofetch
輸出

如何在 Arch Linux 上安裝 Neofetch
要在 Arch Linux 上安裝 Neofetch,請使用 yaourt 或 packer 或 pacman 包管理器來安裝 Neofetch。
使用 pacman,輸入:
pacman -S neofetch
使用 Yaourt,執行以下操作:
yaourt -S neofetch-git
還
yaourt -S neofetch
此命令將克隆 neofetch git 存儲庫並使用以下命令構建包: mkepkg
使用打包程序運行
packer -S neofetch
還
packer -S neofetch-git
啟動 neofetch 並運行
neofetch
輸出

如果您想截取 neofetch 輸出的屏幕截圖並將其保存到您喜歡的位置,請使用: 陰囊 工具。
可以通過運行以下命令安裝 Ubuntu、Mint 和 Debian:
apt -get install scrot
在 Arch Linux 上,這可以通過運行:
pacman -S scrot
在下面的示例中,輸出的屏幕截圖保存在 /home/pictures 路徑中。
neofetch --scrot /home/pictures
- 如何在 Ubuntu 18.04 上安裝和使用 YouTube-DL
- LF – 功能豐富的 Linux 終端管理器
- Termtosvg – 在 Linux 上記錄終端會話的工具
Neofetch 是一個簡單的工具,您可以使用它以簡單方便的方式查看有關係統的基本信息。請一定試一試!