Neofetch is a free, open-source, command-line system information monitoring tool written in bash. It provides an easier way to fetch system information without installing additional software. With Neofetch, you can display various system information, including system model and manufacturer, operating system, kernel version, uptime, memory resources, disk usage, and more.

In this post, we will show you how to install Neofetch on Oracle Linux 8.

Step 1 – Install Neofetch Oracle Linux 8

By default, the Neofetch package is not included in the Oracle Linux default repository, so you will need to install it from the EPEL repository.

First, install the EPEL repo with the following command:

dnf install epel-release -y

Next, install the Neofetch package with the following command:

dnf install neofetch -y

After the successful installation, you can verify the Neofetch version using the following command:

neofetch --version

You should get the following output:

Neofetch 7.1.0

Step 2 – Launch Neofetch

You can run Neofetch without any option to get all the system-related information:

neofetch

You will get the following output:

                                      root@oraclelinux8 
      `-/+++++++++++++++++/-.`        ----------------- 
   `/syyyyyyyyyyyyyyyyyyyyyyys/.      OS: Oracle Linux Server 8.5 x86_64 
  :yyyyo/-...............-/oyyyy/     Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-bionic) 
 /yyys-                     .oyyy+    Kernel: 4.18.0-348.12.2.el8_5.x86_64 
.yyyy`                       `syyy-   Uptime: 2 hours, 2 mins 
:yyyo                         /yyy/   Packages: 477 (rpm) 
.yyyy`                       `syyy-   Shell: bash 4.4.20 
 /yyys.                     .oyyyo    Resolution: 1024x768 
  /yyyyo:-...............-:oyyyy/`    Terminal: /dev/pts/0 
   `/syyyyyyyyyyyyyyyyyyyyyyys+.      CPU: QEMU Virtual version 2.5+ (4) @ 2.399GHz 
     `.:/+ooooooooooooooo+/:.`        GPU: 00:02.0 Cirrus Logic GD 5446 
                                      Memory: 2270MiB / 7768MiB 

To get a list of all options available with Neofetch, run the following command:

neofetch –help

Step 3 – How to Use Neofetch

The basic syntax to use Neofetch is shown below:

neofetch func_name --option "value" --option "value"

For example, to see system uptime run the following command:

neofetch uptime --uptime_shorthand tiny

You will get the system uptime in the following output:

uptime: 2h 2m

To get information about uptime, disk, and memory, run the following command:

neofetch uptime disk wm memory

You should see the following output:

uptime: 2 hours, 2 mins 
disk (/): 6.6G / 160G (5%) 
memory: 2270MiB / 7768MiB 

To disable the CPU and Memory related information in the output, 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 4 – Customize Neofetch

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

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, we explained how to install and use Neofetch to display the system information. Now you can find your system’s basic information in an easier way. Try Neofetch on dedicated hosting from Atlantic.Net!