LinuxCommandLibrary

pfetch

Display system information and logo

TLDR

Display the ASCII art and default fields

$ pfetch
copy

Display only the ASCII art and color palette fields
$ PF_INFO="[ascii palette]" pfetch
copy

Display all possible fields
$ PF_INFO="[ascii title os host kernel uptime pkgs memory shell editor wm de palette]" pfetch
copy

Display a different username and hostname
$ USER="[user]" HOSTNAME="[hostname]" pfetch
copy

Display without colors
$ PF_COLOR=[0] pfetch
copy

SYNOPSIS

pfetch [OPTION]... [SOURCE]

PARAMETERS

-h, --help
    Show help and exit

-V, --version
    Show version and exit

-s, SOURCE
    Source additional script

-c, ASCII
    Use custom ASCII file

-b
    Blank line before info

-n
    No newline after logo

-N
    No newline before info

-p
    Print working directory

-u
    Don't truncate username

-U
    Compact/underline mode

-S, SEPARATOR
    Custom info separator

-B
    Blank line between info

-d
    Hide distro

-D, DIR
    Custom ASCII directory

-m
    Hide memory

-M
    Hide machine model

-l
    Hide local IP

-L
    Hide packages

-t
    Hide terminal

-T
    Hide colors/title

-g
    Hide GTK theme

-G
    Hide song

-r
    Hide uptime

-R
    Hide swap

-w
    Hide WM

-C
    Hide CPU

-f
    Hide shell

-F
    No fork

-o, OPTIONS
    Specify info to show/hide

-O
    Opposite of -o

-q
    Quiet mode

-P
    Hide music player

-a
    Hide Arch updates

DESCRIPTION

pfetch is a lightweight, POSIX-compliant script written in pure sh that displays beautiful system information in your terminal, accompanied by an ASCII art logo of your Linux distribution.

It shows key details like OS, host, kernel, uptime, CPU, GPU, memory, packages, shell, resolution, desktop environment, window manager, theme, terminal, and more. With support for over 70 distros, it auto-detects your setup for instant aesthetics.

Unlike heavier tools, pfetch has zero dependencies beyond standard Unix utilities, ensuring blazing speed (under 20ms load time) and portability across systems. Customize output with flags to show/hide info, change separators, or use custom ASCII. Ideal for ricing, dotfiles, or quick sysinfo glances.

Source from ~/.config/pfetch.conf for persistent tweaks like color schemes or info order. Perfect for minimalists seeking neofetch-like beauty without the bloat.

CAVEATS

ASCII may render poorly in non-monospace fonts or narrow terminals.
Detects ~70 distros; custom ones need manual ASCII.
Not actively maintained since ~2021.

INSTALLATION

Most repos: sudo apt/yum/pacman install pfetch.
Or git clone https://github.com/dylanaraps/pfetch to ~/.local/bin.

CONFIG

Copy /usr/share/pfetch/pfetch.conf to ~/.config/pfetch.conf.
Edit for custom info, colors, ascii.

HISTORY

Created by dylanaraps in 2019 as a faster, dependency-free neofetch alternative.
Hosted on GitHub; peaked in popularity 2020 amid 'ricing' trend.
Community forks exist for modern updates.

SEE ALSO

neofetch(1), screenfetch(1), fastfetch(1), hyfetch(1)

Copied to clipboard