LinuxCommandLibrary

fastfetch

Display system information and hardware details

TLDR

Display system information

$ fastfetch
copy

Display full system information with all the modules enabled
$ fastfetch [[-c|--config]] all
copy

Load a custom configuration file
$ fastfetch [[-c|--config]] [path/to/config_file]
copy

Fetch a specific structure
$ fastfetch [[-s|--structure]] [os:kernel:de:cpu:gpu]
copy

Use a specific logo
$ fastfetch [[-l|--logo]] [logo]
copy

Display system information without a logo
$ fastfetch [[-l|--logo]] none
copy

Use a specific color for the keys and title
$ fastfetch --color [blue]
copy

SYNOPSIS

fastfetch [OPTION…]

PARAMETERS

-h, --help
    Print help and exit

--version
    Print version and exit

--logo <logo>
    Set ASCII/image logo type (auto, none, distro, tiny, etc.)

--logo-type <type>
    Override logo type (auto, ascii, kitty, etc.)

--logo-src <path>
    Custom logo source file

--logo-width <px>
    Logo width for image protocols

--structure <modules>
    Comma-separated list of modules to display (os,host,kernel,etc.)

--module-path <path>
    Custom module directory

--load-config <file>
    Load config file

--config <file>
    Load config and overwrite with args

--preset <preset>
    Load preset (arch, ubuntu, kitty, etc.)

--format <string>
    Key-value format template

--key-width <N>
    Fixed width for keys

--separator <string>
    Separator between key and value

--color <ansi>
    Set colors (ansi, fg, bg, etc.)

--color-keys <ansi>
    Color for module keys

--color-title <ansi>
    Color for host/username title

--hide-cursor
    Hide cursor during execution

--tab-width <N>
    Tab stop width

--size <unit>
    Size unit (iec,si,auto)

--speed <type>
    Benchmark speed type

--backend <type>
    Force backend (auto,wayland,x11)

--pipe
    Enable pipe mode for scripting

--print-error
    Print error messages

--os-file <file>
    Custom OS release file

--cpu-type <type>
    CPU usage type (usage, temp, etc.)

--disk-prefix <prefix>
    Disk prefix filter

--battery-invert
    Invert battery charging icon

--de-no-icon
    Hide DE icon

--wm-no-icon
    Hide WM icon

DESCRIPTION

Fastfetch is a lightweight, highly customizable tool for displaying system information on Linux, macOS, Windows, BSD, and Android. Written in pure C, it outperforms Neofetch by up to 30x in speed while offering more modules and features.

It prints details like OS, host, kernel, Uptime, Packages, Shell, Display resolution, DE/WM, WM Theme, Icon Theme, Font, Cursor, Terminal, CPU, GPU, Memory, Disk, Battery, Locale, Accent color, and more, arranged in a key-value format with optional ASCII/ASCII art logos (supports 1000+ presets for distros, desktops, etc.).

Customization via CLI flags, JSONC config files (~/.config/fastfetch/config.jsonc), or presets. Modules can be enabled/disabled/reordered with --structure. Colors, formats, and separators are tweakable. Supports image backends (kitty, sixel, etc.) for graphical logos. Ideal for terminal ricing, screenshots, and dotfiles.

CAVEATS

Some modules require additional libraries (e.g., vulkan for GPU, libpulse for audio). Image logos need terminal support (kitty, wezterm, etc.). High module count may slightly impact speed. Config parsing is strict JSONC.

CONFIGURATION

Primary config: ~/.config/fastfetch/config.jsonc. Supports $HOME vars, comments. CLI args override config. Presets in /usr/share/fastfetch/presets.

MODULES

120+ modules available (title,separator,os,host,kernel,uptime,packages,shell,resolution,de,wm,theme,icons,font,cursor,terminal,cpu,gpu,memory,swap,disk,battery,locale,accent,etc.). Use fastfetch --list-modules.

IMAGE LOGOS

Protocols: kitty, sixel, iterm2,lerc,apvlv. Set --logo-type image --logo-src path/to/image.png.

BENCHMARKS

Runs 40x faster than Neofetch on average. Use --speed for timings.

HISTORY

Developed by Linus Dierheimer in 2022 as a faster Neofetch alternative. Initial release v1.0.0 in Feb 2022. Rewritten in C from Zig for performance. Surpassed 10k GitHub stars by 2023. Actively maintained with frequent releases; v2.20+ added Windows/Android support, 80+ modules.

SEE ALSO

neofetch(1), screenfetch(1), hyfetch(1), nerdfetch(1)

Copied to clipboard