cpu情報を表示するcpufetch

cpufetchというscreenfetchインスパイアな感じのcpu情報表示ツールを見かけたので試してみました.

$ git clone https://github.com/Dr-Noob/cpufetch
$ cd cpufetch
$ make
$ ./cpufetch -s retro

                               ################
                       #######                #######
                  ####                              ####
              ###                                     ####    Name:              Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
         ###                                             ###  Microarchitecture: Ivy Bridge
         ###                                             ###  Technology:        22nm
      #                    ###                ###        ###  Max Frequency:     3.300 GHz
    ##   ###   #########   ######   ######    ###        ###  Cores:             2 cores (4 threads)
   ##    ###   ###    ###  ###    ####  ####  ###        ###  AVX:               AVX
  ##     ###   ###    ###  ###    ###    ###  ###       ###   FMA:               No
 ##      ###   ###    ###  ###    ##########  ###     ####    L1i Size:          32KB (64KB Total)
 ##      ###   ###    ###  ###    ###         ###   #####     L1d Size:          32KB (64KB Total)
 ##       ##   ###    ###   #####  #########   ##  ###        L2 Size:           256KB (512KB Total)
 ###                                                          L3 Size:           3MB
  ###                                                         Peak Performance:  52.80 GFLOP/s
  ####                                        ####
    #####                               ##########
      ##########               ################
          ###############################

標準のスタイルでテキストで貼り付けると真っ白になるので retro です.通常の実行結果は以下に.

Linux以外でもWindows/macOS/Android(termux)でも動作するようです.

cpufetch intel
cpufetch amd
cpufetch arm
cpufetch snapdragon

neofetch/screenfetch等はシステムの情報を表示しますがcpufetchはcpu情報に特化しています.未だサポートcpuは多くないようです.
/proc/cpuinfo, lscpu, lshw -class cpu とかのほうが実用的だと思いますが,楽しいので.

環境1
$ dpkg-query -W gcc make git
gcc     4:10.2.1-1
git     1:2.31.0-1
make    4.3-4
$ lsb_release -dr
Description:    Debian GNU/Linux bullseye/sid
Release:        unstable
$ arch
x86_64
環境2
$ pkg list-installed 2>&1 | grep -E 'clang|git|make'
clang/stable,now 11.1.0 aarch64 [installed]
git/stable,now 2.31.1 aarch64 [installed]
make/stable,now 4.3-1 aarch64 [installed]
$ termux-info
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# game-repo (sources.list.d/game.list)
deb https://grimler.se/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://grimler.se/science-packages-24 science stable
Updatable packages:
apt/stable 2.2.2 aarch64 [upgradable from: 2.1.18]
dialog/stable 1.3-20210324-0 aarch64 [upgradable from: 1.3-20210117-0]
nano/stable 5.6.1 aarch64 [upgradable from: 5.5]
termux-exec/stable 1:0.9 aarch64 [upgradable from: 1:0.8]
termux-tools/stable 0.115 all [upgradable from: 0.111]
Android version:
9
Kernel build information:
Linux localhost 4.9.112-perf #1 SMP PREEMPT Thu Feb 25 22:16:13 CST 2021 aarch64 Android
Device manufacturer:
TINNO
Device model:
C330

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)