Atlantic.Net Blog

How to Install and Use Neofetch on Ubuntu

Neofetch is a simple and powerful command-line system information tool. It can be installed on all Linux operating systems and is used to display the system information in the terminal alongside the operating system’s logo. Neofetch displays the most useful system information including host and kernel details, IP address, memory, CPU, desktop environment, uptime, GPU, themes, and more.

In this post, we will show you how to install and use Neofetch on Ubuntu 20.04.

In This Article

Step 1 – Install Neofetch

By default, Neofetch is included in the Ubuntu default repository. You can install it using the following command:

apt-get install neofetch -y

Once Neofetch is installed, you can verify the installed version of Neofetch using the following command:

neofetch --version

Output:

Neofetch 7.0.0

You can see the help information about Neofetch with the following command:

neofetch --help

Step 2 – How to Use Neofetch

In order to use Neofetch, just open the terminal and run the following command:

neofetch

You should see the following output:

            .-/+oossssoo+/-.               root@ubuntu2004 
        `:+ssssssssssssssssss+:`           --------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-bionic) 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.4.0-29-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 11 hours, 34 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 463 (dpkg), 4 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.16 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Terminal: /dev/pts/0 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   CPU: QEMU Virtual version 2.5+ (1) @ 2.099GHz 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   GPU: 00:02.0 Cirrus Logic GD 5446 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Memory: 92MiB / 1987MiB 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/                            
  +sssssssssdmydMMMMMMMMddddyssssssss+                             
   /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

In the above output, you can see your system information.

If you want Neofetch to start automatically when you open a terminal window, edit the ~/.bashrc file:

nano ~/.bashrc

Add the following line at the end of the file:

neofetch

Save and close the file, then activate the changes using the following command:

source ~/.bashrc

You can also exclude specific information from the Neofetch output.

To exclude CPU and Memory information, run the following command:

neofetch --disable cpu memory

To hide operating system architecture, run the following command:

neofetch --os_arch off

To print the CPU cores information, run the following command:

neofetch --cpu_cores logical

To display CPU temperature, run the following command:

neofetch --cpu_temp C

Step 3 – Customize Neofetch

Neofetch create a config file at $HOME/.config/neofetch/config.conf after the first run. You can edit it and change it per your requirements.

nano .config/neofetch/config.conf

Enable or disable the information that you need to display.

print_info() {
    info title
    info underline

    info "OS" distro
    info "Host" model
    info "Kernel" kernel
    info "Uptime" uptime
    info "Packages" packages
    info "Shell" shell
    info "Resolution" resolution
    info "DE" de
    info "WM" wm
    info "WM Theme" wm_theme
    info "Theme" theme
    info "Icons" icons
    info "Terminal" term
    info "Terminal Font" term_font
    info "CPU" cpu
    info "GPU" gpu
    info "Memory" memory
     info "Disk" disk
     info "Battery" battery
     info "Local IP" local_ip
    # info "Public IP" public_ip
    # info "Users" users
    # info "Public IP" public_ip
    # info "Locale" locale  # This only works on glibc systems.

    info cols

Save and close the file when you are finished.

Conclusion

In the above guide, you learned how to install and use Neofetch to display the system information. Neofetch can now help you find the system’s basic information in an easier way – try it on your VPS hosting account today!

Get a $250 Credit and Access to Our Free Tier!

Free Tier includes:
G3.2GB Cloud VPS a Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year