← 返回命令列表

Linux command

neofetch 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Display system information

neofetch

Use a custom ASCII art

neofetch --ascii [path/to/ascii.txt]

Use a specific distro's logo

neofetch --ascii_distro [arch]

Display only specific info

neofetch --disable [gpu] [memory]

Use an image

neofetch --backend [kitty] --source [path/to/image.png]

Display without ASCII art

neofetch --off

Save output to file

neofetch --stdout > [neofetch.txt]

说明

neofetch is a command-line system information tool that displays information about your operating system, software, and hardware in an aesthetically pleasing format alongside your distribution's ASCII logo or a custom image. The information displayed includes the operating system, kernel version, uptime, packages installed, shell, resolution, desktop environment, window manager, terminal, CPU, GPU, and memory usage. All aspects of the output are highly configurable through command-line options or a configuration file. Neofetch is popular for showing off system setups in screenshots, particularly in the Unix and Linux customization communities. It supports a wide range of operating systems including Linux, BSD, macOS, iOS, and Windows.

参数

--disable _info_
Disable specific info lines (e.g., gpu, memory, uptime)
--ascii_distro _distro_
Use specified distro's ASCII art
--ascii _path_
Path to custom ASCII art file
--source _path_
Path to image file (used with image backends)
--backend _backend_
Image backend (ascii, kitty, iterm2, sixel, w3m, etc.)
--off
Disable ASCII art entirely
--color_blocks _on/off_
Enable or disable color blocks
--colors _x x x x x x_
Change text colors (title, @, underline, subtitle, colon, info)
--ascii_colors _x x x x x x_
Change ASCII art colors
--bold _on/off_
Enable or disable bold text
--stdout
Print output to stdout (useful for piping/saving)
--config _path_
Use specified config file
--print_config
Print current config to stdout
--help
Display help message
--version
Display version

FAQ

What is the neofetch command used for?

neofetch is a command-line system information tool that displays information about your operating system, software, and hardware in an aesthetically pleasing format alongside your distribution's ASCII logo or a custom image. The information displayed includes the operating system, kernel version, uptime, packages installed, shell, resolution, desktop environment, window manager, terminal, CPU, GPU, and memory usage. All aspects of the output are highly configurable through command-line options or a configuration file. Neofetch is popular for showing off system setups in screenshots, particularly in the Unix and Linux customization communities. It supports a wide range of operating systems including Linux, BSD, macOS, iOS, and Windows.

How do I run a basic neofetch example?

Run `neofetch` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --disable _info_ do in neofetch?

Disable specific info lines (e.g., gpu, memory, uptime)