How to personalize Linux system information using Neofetch

Source: Internet
Author: User
Tags curl arch linux

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):

    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 the Neofetch to the current system

    1. sudo apt - Get Update
    2. 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:

    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. "

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

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.