Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Neofetch in Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use Neofetch in Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use Neofetch in Linux" this article.

Neofetch is a simple but useful command line system information tool written in Bash. It collects information about the software and hardware of the system and displays the results in the terminal. By default, the system information is displayed with the logo of the operating system. However, you can further customize the use of ascii images or any other image. You can also configure the information displayed by Neofetch, where and when the information is displayed. Neofetch is mainly used for screenshots of system information. It supports Linux, BSD, Mac OS X, iOS, and Windows operating systems. In this short tutorial, let's look at how to use Neofetch to display Linux system information.

Install Neofetch

Neofetch can be found in the default repository of most Linux distributions.

On Arch Linux and its derivatives, use this command to install it:

$sudo pacman-S netofetch

On Debian (Stretch / Sid):

$sudo apt-get install neofetch

On Fedora 27:

$sudo dnf install neofetch

On RHEL, CentOS:

Enable the EPEL repository:

# yum install epel-relase

Get the neofetch repository:

# curl-o / etc/yum.repos.d/konimex-neofetch-epel-7.repo https://copr.fedorainfracloud.org/coprs/konimex/neofetch/repo/epel-7/konimex-neofetch-epel-7.repo

Then, install Neofetch:

# yum install neofetch

On Ubuntu 17.10 and later:

$sudo apt-get install neofetch

On Ubuntu 16.10 and earlier:

$sudo add-apt-repository ppa:dawidd0811/neofetch $sudo apt update $sudo apt install neofetch

On NixOS:

$nix-env-I neofetch uses Neofetch to display Linux system information

Neofetch is very simple and straightforward. Let's look at some examples.

Open the terminal and run the following command:

$neofetch

Sample output:

Use Neofetch to display Linux system information

As you can see in the output above, Neofetch shows the following details of my Arch Linux system:

Name of the installed operating system

Notebook model

Kernel details

System running time

Number of software installed by default and other package managers

Default shell

Screen resolution

Desktop environment

Window manager

Themes for the window manager

System theme

System icon

Default terminal

CPU Typ

GPU Typ

Installed memory.

Neofetch has many other options. We'll see some of them.

How do I use custom images in Neofetch output?

By default, Neofetch will display your operating system logo and system information. Of course, you can change the image as needed.

To display images, the Linux system should install the following dependencies:

Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community

W3m-img (used to display images. W3m-img is sometimes bundled with w3m packages)

Imagemagick (used to create thumbnails)

Supports\ 033 [14t or xdotool or xwininfo + xprop or xwininfo + xdpyinfo terminals.

The W3m-img and ImageMagick packages are available in the default repository for most Linux distributions. Therefore, you can use the default package manager of your distribution to install them.

For example, run the following command to install w3m-img and ImageMagick on Debian, Ubuntu, Linux Mint:

$sudo apt install w3m-img imagemagick

The following is a list of endpoints with w3m-img support:

Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community

Gnome-terminal

Konsole

St

Terminator

Termite

URxvt

Xfce4-Terminal

Xterm

If you already have kitty, Terminology, and iTerm on your system, you don't need to install w3m-img.

Now, run the following command to display system information using a custom image:

$neofetch-- W3m / home/sk/Pictures/image.png

Or

$neofetch-- W3m-- source / home/sk/Pictures/image.png

Sample output:

Neofetch output using custom logo

Replace the path of the above picture with your own picture.

Alternatively, you can point to the directory that contains the following images.

$neofetch-- w3m configuration Neofetch

When we run Neofetch * * times, it creates a configuration file in $HOME/.config/neofetch/config.conf for each user by default. It also creates a global neofetch configuration file in $HOME/.config/neofetch/config. You can adjust this file to tell neofetch which details to display, delete and / or modify.

You can also keep this profile in different versions. This means that you only need to customize it once according to your preferences and use the same settings after upgrading to the newer version. You can even share this file with your friends and colleagues so that they have the same settings as yours.

To view the Neofetch help section, run:

$neofetch-help above is all the content of the article "how to use Neofetch in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report