Neofetch: displays Linux information in a personalized manner.

Source: Internet
Author: User
Tags arch linux

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:

  1. Curl-L "https://bintray.com/user/downloadSubjectPublicKey? Username = bintray "-o Release-neofetch.key
  2. Sudo apt-key add Release-neofetch.key
  3. Rm Release-neofetch.key

3. Install Neofetch on the current system

  1. Sudo apt-get update
  2. 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:

  1. Alias neofetch2 = "neofetch \
  2. -- Block_range 1 8 \
  3. -- Line_wrap off \
  4. -- Bold off \
  5. -- Uptime_shorthand on \
  6. -- Gtk_shorthand on \
  7. -- Colors 4 1 8 8 8 7
  8. "

By the way, remember the source ~ /. Make bashrc take effect. Run neofetch2 next time.

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.