How to Display System Information with Neofetch on Linux

How to Display System Information with Neofetch on Linux

Over the years Linux users have been known to write command line-based scripts that “fetch” or display system information from their machines. Multiple community based scripts of this type have come and gone, but the more popular ones out there are still being used today.

NeoFetch is one of these such scripts and looks to provide all the features and capabilities of its predecessors but in a much more comprehensive way.

Put simply, if you’ve ever wanted to check your hardware specifications, kernel version, uptime, desktop environment type, and more (with ease) – then a program like NeoFetch is what you’re looking for.

The following set of instructions are for an install of Neofetch on Debian/Ubuntu. NeoFetch is cross-platform so will work on most other systems, too (even Windows!).

The installation instructions are also readily available for Arch Linux, Gentoo, Fedora, and Mac OS X here on the project’s GitHub page.

It’s easiest to copy/paste these next three commands into your terminal, so there are no errors when entering.

Open a terminal and add the NeoFetch software repository by running:

Then add the public key as trusted to your system by typing in:

Wait for the short download output to finish and enter:

You can now install Neofetch onto the machine with:

Say “yes” to any prompts.

You now have the program ready to run on your Ubuntu machine.

How do you use NeoFetch to print out system information now that it’s installed? Thankfully it’s quite easy, It’s done simply by calling the program inside of the terminal using its name.

Enter this one-word command into your terminal to see your system specs output:

Neofetch Default System Information Output

As you can see, the output is quite detailed. We can get a lot more use out of the program by going a little further and adding extra options to the command.

Here are some examples:

Change the memory statistic to a progress bar, and disable the colour blocks by appending:

Neofetch Bar & No Colour Block System Information

Change the colours of the output text with this option:

Neofetch Coloured Output System Information

Save the system output details to a new image file by taking a screenshot:

Replace “/path/to/img” in the location and file-name where you want your screenshot to be created. The full list of options you can use to create different outputs is available here.

Typing out the extra parts of your custom commands can be a bit repetitive and time-consuming. To remedy this, we can create an “alias” for any custom NeoFetch outputs we want to run.

An alias is a shorter command that refers to another much longer command. These aliases are best stored in your system’s “.bashrc” file.

Begin writing to this file now with Nano:

Here’s an example alias to add to the bottom of the file that runs a longer NeoFetch command but with one word!

The backslashes continue the code on the next line instead of ending it abruptly, so one of these is needed on each new line (barring the last).

Save and leave this file by pressing “Ctrl + x” together at the same time on your keyboard, followed by one press of the “y” key to confirm.

Nearly done!

Source the “.bashrc” file so the changes are picked up:

Now try running the new Neofetch alias we defined to see the customised output! Remember we called it “neofetch2”:

Neofetch Alias Output

The terminal output shows the results! If you got an error go back to the “.bashrc” file from earlier and check that your alias is written down correctly.

If you’ve never used one of these tools before, you’ll find it a welcome addition to your repertoire. Although not super essential, it’s nice to have an easy way to quickly see system specs on the fly, and there’s no end to the amount of aliases you can add to make things smoother. Have fun using this one!

6 comments

  1. INXI is an another terminal program available for Debian-based distros. It is capable of displaying much more information about a system than Neofetch.

    CONKY is another program that displays system information. It is highly configurable, can be started as part of the boot-up process and has a GUI display that can run constantly on the desktop.

  2. Did not load PPA or key or something. Your input code must have an error as it my terminal had a message about not finding openSUSE.
    You might want to double check the code provided in article.

  3. john@Nighthawk:~$ sudo apt-get update
    Hit http://us.archive.ubuntu.com wily InRelease
    Hit http://us.archive.ubuntu.com wily-updates InRelease
    Hit http://us.archive.ubuntu.com wily-backports InRelease
    Ign http://dl.bintray.com jessie InRelease
    Hit http://ppa.launchpad.net wily InRelease
    Hit http://security.ubuntu.com wily-security InRelease
    Get:1 http://dl.bintray.com jessie Release.gpg [821 B]
    Hit http://ppa.launchpad.net wily InRelease
    Get:2 http://dl.bintray.com jessie Release [1,654 B]
    Ign http://ppa.launchpad.net wily InRelease
    Get:3 http://dl.bintray.com jessie/main amd64 Packages [806 B]
    Hit http://ppa.launchpad.net wily InRelease
    Get:4 http://dl.bintray.com jessie/main i386 Packages [806 B]
    Hit http://ppa.launchpad.net wily InRelease
    Ign http://download.opensuse.org InRelease
    Get:5 http://download.opensuse.org Release.gpg [481 B]
    Ign http://ppa.launchpad.net wily Release.gpg
    Ign http://dl.bintray.com jessie/main Translation-en_US
    Hit http://download.opensuse.org Release
    Ign http://download.opensuse.org Release
    Ign http://dl.bintray.com jessie/main Translation-en
    Hit http://us.archive.ubuntu.com wily-backports/restricted Sources
    Hit http://us.archive.ubuntu.com wily-backports/multiverse Sources
    Hit http://us.archive.ubuntu.com wily-backports/restricted amd64 Packages
    Hit http://us.archive.ubuntu.com wily-backports/multiverse amd64 Packages
    Ign http://download.opensuse.org Packages/DiffIndex
    Hit http://us.archive.ubuntu.com wily-backports/restricted i386 Packages
    Hit http://us.archive.ubuntu.com wily-backports/multiverse i386 Packages
    Hit http://ppa.launchpad.net wily/main amd64 Packages
    Hit http://security.ubuntu.com wily-security/main Sources
    Hit http://us.archive.ubuntu.com wily-backports/multiverse Translation-en
    Hit http://ppa.launchpad.net wily/main i386 Packages
    Hit http://us.archive.ubuntu.com wily-backports/restricted Translation-en
    Hit http://security.ubuntu.com wily-security/restricted Sources
    Hit http://ppa.launchpad.net wily/main Translation-en
    Hit http://security.ubuntu.com wily-security/universe Sources
    Hit http://us.archive.ubuntu.com wily/main Sources
    Hit http://ppa.launchpad.net wily/main amd64 Packages
    Hit http://us.archive.ubuntu.com wily/restricted Sources
    Hit http://us.archive.ubuntu.com wily/universe Sources
    Hit http://security.ubuntu.com wily-security/multiverse Sources
    Hit http://us.archive.ubuntu.com wily/multiverse Sources
    Hit http://ppa.launchpad.net wily/main i386 Packages
    Hit http://us.archive.ubuntu.com wily/main amd64 Packages
    Hit http://security.ubuntu.com wily-security/main amd64 Packages
    Hit http://us.archive.ubuntu.com wily/restricted amd64 Packages
    Hit http://ppa.launchpad.net wily/main Translation-en
    Hit http://us.archive.ubuntu.com wily/universe amd64 Packages
    Hit http://us.archive.ubuntu.com wily/multiverse amd64 Packages
    Hit http://security.ubuntu.com wily-security/restricted amd64 Packages
    Hit http://us.archive.ubuntu.com wily/main i386 Packages
    Ign http://ppa.launchpad.net wily Release
    Hit http://us.archive.ubuntu.com wily/restricted i386 Packages
    Hit http://us.archive.ubuntu.com wily/universe i386 Packages
    Hit http://security.ubuntu.com wily-security/universe amd64 Packages
    Hit http://ppa.launchpad.net wily/main amd64 Packages
    Hit http://us.archive.ubuntu.com wily/multiverse i386 Packages
    Hit http://us.archive.ubuntu.com wily/main Translation-en
    Hit http://security.ubuntu.com wily-security/multiverse amd64 Packages
    Hit http://us.archive.ubuntu.com wily/multiverse Translation-en
    Hit http://ppa.launchpad.net wily/main i386 Packages
    Hit http://us.archive.ubuntu.com wily/restricted Translation-en
    Hit http://us.archive.ubuntu.com wily/universe Translation-en
    Hit http://security.ubuntu.com wily-security/main i386 Packages
    Hit http://ppa.launchpad.net wily/main Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/main Sources
    Hit http://us.archive.ubuntu.com wily-updates/restricted Sources
    Hit http://ppa.launchpad.net wily/main amd64 Packages
    Hit http://security.ubuntu.com wily-security/restricted i386 Packages
    Hit http://us.archive.ubuntu.com wily-updates/universe Sources
    Hit http://us.archive.ubuntu.com wily-updates/multiverse Sources
    Hit http://ppa.launchpad.net wily/main i386 Packages
    Hit http://security.ubuntu.com wily-security/universe i386 Packages
    Hit http://us.archive.ubuntu.com wily-updates/main amd64 Packages
    Hit http://us.archive.ubuntu.com wily-updates/restricted amd64 Packages
    Hit http://ppa.launchpad.net wily/main Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/universe amd64 Packages
    Hit http://security.ubuntu.com wily-security/multiverse i386 Packages
    Hit http://us.archive.ubuntu.com wily-updates/multiverse amd64 Packages
    Hit http://us.archive.ubuntu.com wily-updates/main i386 Packages
    Hit http://us.archive.ubuntu.com wily-updates/restricted i386 Packages
    Hit http://security.ubuntu.com wily-security/main Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/universe i386 Packages
    Hit http://us.archive.ubuntu.com wily-updates/multiverse i386 Packages
    Hit http://security.ubuntu.com wily-security/multiverse Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/main Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/multiverse Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/restricted Translation-en
    Hit http://security.ubuntu.com wily-security/restricted Translation-en
    Hit http://us.archive.ubuntu.com wily-updates/universe Translation-en
    Hit http://us.archive.ubuntu.com wily-backports/main Sources
    Hit http://us.archive.ubuntu.com wily-backports/universe Sources
    Hit http://security.ubuntu.com wily-security/universe Translation-en
    Hit http://us.archive.ubuntu.com wily-backports/main amd64 Packages
    Hit http://us.archive.ubuntu.com wily-backports/universe amd64 Packages
    Hit http://us.archive.ubuntu.com wily-backports/main i386 Packages
    Hit http://us.archive.ubuntu.com wily-backports/universe i386 Packages
    Hit http://us.archive.ubuntu.com wily-backports/main Translation-en
    Hit http://us.archive.ubuntu.com wily-backports/universe Translation-en
    Err http://ppa.launchpad.net wily/main amd64 Packages
    404 Not Found
    Err http://ppa.launchpad.net wily/main i386 Packages
    404 Not Found
    Ign http://ppa.launchpad.net wily/main Translation-en_US
    Ign http://ppa.launchpad.net wily/main Translation-en
    Ign http://download.opensuse.org Translation-en_US
    Ign http://download.opensuse.org Translation-en
    Hit http://download.opensuse.org Packages
    Fetched 4,568 B in 9s (507 B/s)
    W: GPG error: http://download.opensuse.org Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886
    W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/wily/main/binary-amd64/Packages 404 Not Found

    W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/wily/main/binary-i386/Packages 404 Not Found

    E: Some index files failed to download. They have been ignored, or old ones used instead.

  4. This code worked, It is from the GitHub website:
    Debian / Ubuntu

    Add the 3rd party repo
    echo “deb http://dl.bintray.com/dawidd6/neofetch jessie main” | sudo tee -a /etc/apt/sources.list
    Add 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
    Update repositories
    sudo apt-get update
    Install the package
    sudo apt-get install neofetch

  5. Hello, author of Neofetch here.

    Thanks for writing this article! I really appreciate it!

    Neofetch also has a config file that is created on first run, it’s located at ‘$HOME/.config/neofetch/’ and it’ll be a little easier to mess around with than using aliases. The config will also allow you to add/remove/rearrange the info that is printed. Neofetch also has some additional lines of info that can be printed like disk usage, IP addresses etc. The config ptions also have more detailed descriptions and will be easier to edit.

    Thanks again.

  6. Neofetch is now at 3.0. Several new configuration options have been added. The one I was mostly waiting on personally was to be able to use farenheit or celcius with the cpu setting (I wanted farenheit).

    As usual, neofetch 3.0 is working flawlessly and is easy as can be to configure to show what you want.

    Thanks to Dylan Araps and those who contributed for making this great little app!

Comments are closed.

Sponsored Stories