命令行生成樹莓派系統信息截圖

通常,我們可以執行 cat /proc/cpuinfo、lscpu、free 和 uname -a 等命令來獲取系統信息。

但是,如果你想查看更多詳細信息,比如操作系統、內核、運行時間、shell 環境,屏幕分辨率等,還想生成好看的分享截圖,那麼可以選擇這個 bash 工具: Neofetch。

Neofetch 是用 Bash 腳本編寫的,創建系統信息截圖的開源工具,可以識別近 150 種不同的操作系統,當然也包含樹莓派 Raspbian 操作系統。

Neofetch supports almost 150 different operating systems. From Linux to Windows, all the way to more obscure operating systems like Minix, AIX and Haiku.

在樹莓派 Raspbian 上安裝並執行:

<code>sudo apt-get install neofetchneofetch/<code>

就能看到如下獨特的系統信息截圖:

命令行生成樹莓派系統信息截圖

顯示更多系統信息。neofetch 會在 ~/.config/neofetch/config.conf 生成配置文件,打開這個文件,取消註釋掉一些選項,就能定製系統信息輸出了。比如我還把磁盤、IP 信息等也打開了。

命令行生成樹莓派系統信息截圖

  • dylanaraps/neofetch: ️ A command-line system information tool written in bash 3.2+


分享到:


相關文章: