Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Neofetch to display system information in Linux

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use Neofetch to display system information in Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "how to use Neofetch to display system information in Linux" this article.

Neofetch is a cross-platform easy-to-use system information display command-line script that collects your system information and displays it with an image in the terminal, which may be your distribution's logo or an ascii art word of your choice.

Install Neofetch

Using the following steps, we can easily install Neofetch in Debian/Ubuntu. Since 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.

Execute the following command in the terminal to add a third-party source echo "deb http://dl.bintray.com/dawidd6/neofetch jessie main" | sudo tee-a / etc/apt/sources.list execute the following command to add a public key (curl is required) curl-L "https://bintray.com/user/downloadSubjectPublicKey?username=bintray"-o Release-neofetch.keysudo apt-key add Release-neofetch.keyrm Release-neofetch.key install Neofetch to the current system sudo apt-get updatesudo apt-get install neofetch using Neofetch

How do you use NeoFetch after it is installed? In fact, you can output data directly by executing its user name in the terminal.

Sudo neofetch

As you can see, the default output information is already very detailed. If you find the display monotonous, you can use extension parameters for output. For example, memory usage can be displayed as a percentage with a color progress bar:

Sudo neofetch-memory_display bar-color_blocks off

You can also customize the text color of the output:

Neofetch-colors 7 7 5 11 7 9

You can also output the details entered by the system as screenshots and save them as pictures:

Neofetch-scrot / path/to/img

The picture output path can be set according to your own preferences.

Configure alias

It's boring and time-consuming to repeat excessively long parameters every time. Neofetch has so many parameters that I'm sure you can't remember any of them. Therefore, it is recommended that you write the parameters into the .bashrc file and execute them through alias.

Here are the parameters I added in my .bashrc file, which you can refer to:

Alias neofetch3= "neofetch\-- block_range 1 8\-- line_wrap off\-- bold off\-- uptime_shorthand on\-- gtk_shorthand on\-- colors 4 1 8 8 7"

By the way, remember to source ~ /. Bashrc to make it take effect after changing the configuration file. The next time you use it, execute neofetch3 directly to OK.

The above is all the contents of the article "how to use Neofetch to display system information in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report