Neofetch: displays Linux information in a personalized manner.
There are too many open-source tools and scripts that can be used to view and display Linux system information. Neofetch is also one of them. Neofetch can display detailed Linux system information in a more comprehensive manner.
To put it simply, if you want to view the hardware specification, kernel version, running time, and desktop environment used by Linux, Neofetch will be very suitable for you. It is recommended because its output is personalized and interesting.
Install Neofetch
Using the following steps, we can easily install Neofetch In Debian/Ubuntu. Since Neofetch is a cross-platform application suitable for most operating systems, we can even install it in Windows (Cygwin.
On the Neofetch GitHub homepage, the installation steps of Arch Linux, Gentoo, Fedora, and Mac OS X are also described in detail.
1. Run the following command on the terminal to add a third source:
echo "deb http://dl.bintray.com/dawidd6/neofetch jessie main"| sudo tee -a /etc/apt/sources.list
2. Run the following command to add the Public Key (you must have installed curl:
- 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 Neofetch on the current system
- Sudo apt-get update
- Sudo apt-get install neofetch
Use Neofetch
How can I use NeoFetch after it is installed? In fact, you only need to execute the user name in the terminal to directly output data.
Sudo neofetch (SEE)
As you can see, the default output information is already very detailed. If you think the display is monotonous, you can use extended parameters for output. For example, you can use the color progress bar to Display memory usage by percentage:
Sudo neofetch -- memory_display bar -- color_blocks off (see)
You can also customize the output text color:
Neofetch -- colors 7751179 (SEE)
You can also directly output the detailed information entered by the system and save it as an image:
neofetch --scrot /path/to/img
You can set the image output path based on your preferences.
Is the use of Neofetch very interesting? Because there are too many parameters, it is impossible to introduce them one by one. This article can only be used as an example. For details about the parameters, refer to here.
Configure alias
It is boring and time-consuming to repeat parameters that are too long each time you use them. If there are so many Neofetch parameters, you can't remember them like me. Therefore, we recommend that you write the parameters to the. bashrc file and use alias to execute them.
The following are the parameters I have added in my. bashrc file. For details, refer:
- 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
- "
By the way, remember the source ~ /. Make bashrc take effect. Run neofetch2 next time.
This article permanently updates the link address: