There are so many open-source tools and scripts that you can use to view and display Linux system information, and Neofetch is one of them, Neofetch can display the detailed information of the Linux system in a more comprehensive way, simply, if you want to see the hardware specifications, kernel versions used by Linux , uptime, and desktop environment, Neofetch will be perfect for you. It is recommended because its output is very personal and interesting.
Installing Neofetch
Using the steps below, we can easily install Neofetch in Debian/ubuntu. Because Neofetch is a cross-platform application for most operating systems, we can even install it in Windows (Cygwin). The installation steps for Arch Linux, Gentoo, Fedora, and Mac OS X are also described in detail on the GitHub home page of Neofetch.
1. Add a third-party source in the terminal by executing the following command:
"Deb Http://dl.bintray.com/dawidd6/neofetch Jessie Main" | - /etc/apt/sources. List
2. execute the following command to add the public key (you need to have Curl installed):
- Curl - L "Https://bintray.com/user/downloadSubjectPublicKey?username=bintray" - o Release - Neofetch . Key
- sudo apt - Key Add Release - Neofetch . Key
- RM Release - Neofetch . Key
3. Install the Neofetch to the current system
- sudo apt - Get Update
- sudo apt - Get Install Neofetch
using Neofetch
Neofetch How to use it after installation? In fact, simply execute its username in the terminal to output the data directly.
sudo neofetch
As you can see, the default output information is very detailed. If you feel that the display is monotonous, you can use the extended parameters to output. For example, the memory usage can be displayed as a percentage of the color progress bar:
---color_blocks off
You can also customize the text color of the output:
--77579
You can also save the details of the system input in the form of direct output to a picture:
--/path/to/img
Picture output path Everyone can set according to their preferences.
Configure alias
It's boring and time-consuming to repeat too long parameters every time you want to use it, and I'm sure you can't remember as much as I do, neofetch. So it is recommended that you write the parameters in the . BASHRC file and execute it through alias. Here are the parameters I added in my. bashrc file, which you can refer to:
- alias NEOFETCH2 = "Neofetch \
- --block_range 1 8 \
- --line_wrap off \
- --bold off \
- --uptime_shorthand on \
- --gtk_shorthand on \
- --colors 4 1 8 8 8 7
- "
Yes, after changing the configuration file remember source ~/.BASHRC Let it take effect. The next time you use, the direct execution of NEOFETCH2 is OK.
This article was reproduced from: http://www.linuxprobe.com/ubuntu-install-transmission-2-90/
Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/
How to personalize Linux system information using Neofetch