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 24.04.
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.1.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@ubuntu
`:+ssssssssssssssssss+:` -----------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 24.04.2 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: KVM/QEMU (Standard PC (i440FX
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 6.8.0-54-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 4 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 827 (dpkg), 4 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.2.21
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1024x768
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/pts/0
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: QEMU Virtual version 2.5+ (2) @
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ GPU: 00:02.0 Cirrus Logic GD 5446
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Memory: 213MiB / 3916MiB
/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!