Two very helpful instruments for extracting important particulars in your Linux system OS and {hardware} are screenfetch and geofetch.
Every of those instruments is definitely a prolonged bash script that fetches the knowledge out of your system for you and presents it in a gorgeous method with the distribution emblem on the left and particulars on the right–essentially “display screen pictures” of your system. Neither is prone to be put in in your system by default, however every could be put in with a single command.
screenfetch
You’ll be able to set up screenfetch with sudo apt set up screenfetch or sudo yum set up screenfetch. Screenfetch is a script with almost 6,500 traces. It is going to robotically detect your distribution and show the distribution, kernel, uptime, variety of packages put in, shell you are utilizing, total and accessible disk area, CPU, GPU and reminiscence (in use and accessible). It additionally shows an ASCII artwork rendition of the brand associated to no matter distribution it is run on, however you possibly can flip this off if you wish to see simply the checklist of particulars.
The output from this command will look one thing like this (on Ubuntu), however in shade:
$ screenfetch ./+o+- shs@dragonfly yyyyy- -yyyyyy+ OS: Ubuntu 20.04 focal ://+//////-yyyyyyo Kernel: x86_64 Linux 5.4.0-52-generic .++ .:/++++++/-.+sss/` Uptime: 25d 23h 44m .:++o: /++++++++/:--:/- Packages: 2882 o:+o+:++.`..```.-/oo+++++/ Shell: bash 5.0.17 .:+o:+o/. `+sssoo+/ Disk: 62G / 541G (12%) .++/+:+oo+o:` /sssooo. CPU: Intel Core2 Duo E8400 @ 2x 2.997GHz /+++//+:`oo+o /::--:. GPU: AMD/ATI Caicos [Radeon HD 6450/7450/8450 +/+o+++`o++o ++////. RAM: 915MiB / 5944MiB .++.o+++oo+:` /dddhhh. .+.o+oo:. `oddhhhh+ +.++o+o``-````.:ohdhhhhh+ `:o+++ `ohhhhhhhhyo++os: .o:`.syhhhhhhh/.oo++o` /osyyyyyyo++ooo+++/ ````` +oo+++o: `oo++.
To omit the ASCII art logo and see just the system details, add a -n option.
$ screenfetch -n shs@dragonfly OS: Ubuntu 20.04 focal Kernel: x86_64 Linux 5.4.0-52-generic Uptime: 25d 23h 50m Packages: 2882 Shell: bash 5.0.17 Disk: 62G / 541G (12%) CPU: Intel Core2 Duo E8400 @ 2x 2.997GHz GPU: AMD/ATI Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] RAM: 903MiB / 5944MiB
Including a -v (verbose) choice will coax the script into displaying the system data because it uncovers it. After all of the “discovering” messages, it’ll show the same old output.
$ screenfetch -v :: Discovering distro...discovered as 'Ubuntu 20.04' :: Discovering hostname and person...discovered as 'shs@dragonfly' :: Discovering kernel model...discovered as 'x86_64 Linux 5.4.0-52-generic' :: Discovering present uptime...discovered as '25d 23h 54m' :: Discovering present bundle depend...discovered as '2882' :: Discovering present shell...discovered as 'bash 5.0.17' :: Discovering present decision(s)...discovered as 'No X Server' :: Discovering desktop setting...discovered as 'Not Current' :: Discovering window supervisor...discovered as 'Not Discovered' :: Discovering window supervisor theme...discovered as 'Not Discovered' :: Discovering GTK2 theme...discovered as 'Not Discovered' :: Discovering GTK3 theme...discovered as 'Adwaita' :: Discovering icon theme...discovered as 'Not Discovered' :: Discovering person font...discovered as 'Not Discovered' :: Discovering present CPU...discovered as 'Intel Core2 Duo E8400 @ 2x 2.997GHz' :: Discovering present disk utilization...discovered as '62G / 541G (12%%)' :: Discovering present GPU...discovered as 'AMD/ATI Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]' :: Discovering present RAM utilization...discovered as '902MiB / 5944MiB'
The screenfetch script is put in as /usr/bin/screenfetch.
$ ls -l /usr/bin/screenfetch -rwxr-xr-x 1 root root 244084 Nov 27 15:17 /usr/bin/screenfetch
neofetch
The neofetch script is even lengthier than the screenfetch script. It has over 10,000 traces and shows some extra system data. You’ll be able to set up it with a command equivalent to sudo apt set up neofetch or sudo dnf set up neofetch. Like screenfetch, neofetch detects the knowledge that it shows and provides an ASCII artwork depiction of the distribution emblem to the show.
$ neofetch .-/+oossssoo+/-. shs@dragonfly `:+ssssssssssssssssss+:` ------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.1 LTS x86_64 .ossssssssssssssssssdMMMNysssso. Host: Inspiron 530s /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.4.0-52-generic +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 26 days, 21 minutes /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 3049 (dpkg), 15 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Decision: 1920x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/pts/0 ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel Core 2 Duo E8400 (2) @ 2.997GHz +sssshhhyNMMNyssssssssssssyNMMMysssssss+ GPU: AMD ATI Radeon HD 6450/7450/8450 / R5 .ssssssssdMMMNhsssssssssshNMMMdssssssss. Reminiscence: 620MiB / 5944MiB /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ +sssssssssdmydMMMMMMMMddddyssssssss+ /ssssssssssshdmNNNNmyNMMMMhssssss/ .ossssssssssssssssssdMMMNysssso. -+sssssssssssssssssyyyssss+- `:+ssssssssssssssssss+:` .-/+oossssoo+/-.
As you possibly can see, traces for host (system sort), display screen decision and terminal are included the place they are not with screenfetch, however the data on disk capability and utilization shouldn’t be. By uncommenting this line within the script and working with sudo, I used to be capable of get the disk data included:
# information “Disk” disk
Many different choices seem like accessible as nicely.
$ sudo neofetch .-/+oossssoo+/-. root@dragonfly `:+ssssssssssssssssss+:` -------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.1 LTS x86_64 .ossssssssssssssssssdMMMNysssso. Host: Inspiron 530s /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.4.0-52-generic +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 26 days, 1 hour, 21 minutes /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 3049 (dpkg), 15 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Decision: 1920x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel Core 2 Duo E8400 (2) @ 2.997GHz ossyNMMMNyMMhsssssssssssssshmmmhssssssso GPU: AMD ATI Radeon HD 6450/7450/8450 / R5 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Reminiscence: 624MiB / 5944MiB .ssssssssdMMMNhsssssssssshNMMMdssssssss. Disk (/): 20G / 110G (19%) <== /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Public IP: 204.111.9.145 +sssssssssdmydMMMMMMMMddddyssssssss+ /ssssssssssshdmNNNNmyNMMMMhssssss/ .ossssssssssssssssssdMMMNysssso. -+sssssssssssssssssyyyssss+- `:+ssssssssssssssssss+:` .-/+oossssoo+/-.
The neofetch script is put in as /usr/bin/neofetch.
$ ls -l /usr/bin/neofetch -rwxr-xr-x 1 root root 320947 Nov 27 17:01 /usr/bin/neofetch
Listed here are some extra comparisons of the tools–script dimension, size and run time:
$ wc -l /usr/bin/*fetch 10083 /usr/bin/neofetch 6469 /usr/bin/screenfetch $ time screenfetch | tail -1 actual 0m0.564s person 0m0.366s sys 0m0.164s $ time neofetch | tail -1 actual 0m0.364s person 0m0.228s sys 0m0.112s
Wrap-Up
Each the screenfetch and neofetch scripts present very helpful and properly formatted shows of vital system data.
Neofetch might be the newer instrument (prompt by the inclusion of the string “neo” in its title) and gives some extra choices. Each instruments are as straightforward to make use of as typing their names,they usually present vital system particulars.
Copyright © 2020 IDG Communications, Inc.
Leave a Reply