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!

Christian Scarlett Christian Scarlett

Christian has been involved with technology in some way or another for most of his life and has spent the majority of his time working with Linux and open-source software as a system admin. Recently he’s taken to freelance writing for both cloud hosting providers and tech blogging sites.


  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 wily InRelease
    Hit wily-updates InRelease
    Hit wily-backports InRelease
    Ign jessie InRelease
    Hit wily InRelease
    Hit wily-security InRelease
    Get:1 jessie Release.gpg [821 B]
    Hit wily InRelease
    Get:2 jessie Release [1,654 B]
    Ign wily InRelease
    Get:3 jessie/main amd64 Packages [806 B]
    Hit wily InRelease
    Get:4 jessie/main i386 Packages [806 B]
    Hit wily InRelease
    Ign InRelease
    Get:5 Release.gpg [481 B]
    Ign wily Release.gpg
    Ign jessie/main Translation-en_US
    Hit Release
    Ign Release
    Ign jessie/main Translation-en
    Hit wily-backports/restricted Sources
    Hit wily-backports/multiverse Sources
    Hit wily-backports/restricted amd64 Packages
    Hit wily-backports/multiverse amd64 Packages
    Ign Packages/DiffIndex
    Hit wily-backports/restricted i386 Packages
    Hit wily-backports/multiverse i386 Packages
    Hit wily/main amd64 Packages
    Hit wily-security/main Sources
    Hit wily-backports/multiverse Translation-en
    Hit wily/main i386 Packages
    Hit wily-backports/restricted Translation-en
    Hit wily-security/restricted Sources
    Hit wily/main Translation-en
    Hit wily-security/universe Sources
    Hit wily/main Sources
    Hit wily/main amd64 Packages
    Hit wily/restricted Sources
    Hit wily/universe Sources
    Hit wily-security/multiverse Sources
    Hit wily/multiverse Sources
    Hit wily/main i386 Packages
    Hit wily/main amd64 Packages
    Hit wily-security/main amd64 Packages
    Hit wily/restricted amd64 Packages
    Hit wily/main Translation-en
    Hit wily/universe amd64 Packages
    Hit wily/multiverse amd64 Packages
    Hit wily-security/restricted amd64 Packages
    Hit wily/main i386 Packages
    Ign wily Release
    Hit wily/restricted i386 Packages
    Hit wily/universe i386 Packages
    Hit wily-security/universe amd64 Packages
    Hit wily/main amd64 Packages
    Hit wily/multiverse i386 Packages
    Hit wily/main Translation-en
    Hit wily-security/multiverse amd64 Packages
    Hit wily/multiverse Translation-en
    Hit wily/main i386 Packages
    Hit wily/restricted Translation-en
    Hit wily/universe Translation-en
    Hit wily-security/main i386 Packages
    Hit wily/main Translation-en
    Hit wily-updates/main Sources
    Hit wily-updates/restricted Sources
    Hit wily/main amd64 Packages
    Hit wily-security/restricted i386 Packages
    Hit wily-updates/universe Sources
    Hit wily-updates/multiverse Sources
    Hit wily/main i386 Packages
    Hit wily-security/universe i386 Packages
    Hit wily-updates/main amd64 Packages
    Hit wily-updates/restricted amd64 Packages
    Hit wily/main Translation-en
    Hit wily-updates/universe amd64 Packages
    Hit wily-security/multiverse i386 Packages
    Hit wily-updates/multiverse amd64 Packages
    Hit wily-updates/main i386 Packages
    Hit wily-updates/restricted i386 Packages
    Hit wily-security/main Translation-en
    Hit wily-updates/universe i386 Packages
    Hit wily-updates/multiverse i386 Packages
    Hit wily-security/multiverse Translation-en
    Hit wily-updates/main Translation-en
    Hit wily-updates/multiverse Translation-en
    Hit wily-updates/restricted Translation-en
    Hit wily-security/restricted Translation-en
    Hit wily-updates/universe Translation-en
    Hit wily-backports/main Sources
    Hit wily-backports/universe Sources
    Hit wily-security/universe Translation-en
    Hit wily-backports/main amd64 Packages
    Hit wily-backports/universe amd64 Packages
    Hit wily-backports/main i386 Packages
    Hit wily-backports/universe i386 Packages
    Hit wily-backports/main Translation-en
    Hit wily-backports/universe Translation-en
    Err wily/main amd64 Packages
    404 Not Found
    Err wily/main i386 Packages
    404 Not Found
    Ign wily/main Translation-en_US
    Ign wily/main Translation-en
    Ign Translation-en_US
    Ign Translation-en
    Hit Packages
    Fetched 4,568 B in 9s (507 B/s)
    W: GPG error: Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886
    W: Failed to fetch 404 Not Found

    W: Failed to fetch 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 jessie main” | sudo tee -a /etc/apt/sources.list
    Add public key (you need to have curl installed)
    curl -L “” -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.