slackfetch displays a compact summary of system information.
- Shell 58.4%
- Roff 38.7%
- Makefile 2.9%
| LICENSE | ||
| Makefile | ||
| README | ||
| slackfetch | ||
| slackfetch.1 | ||
SLACKFETCH(1) General Commands Manual SLACKFETCH(1)
NAME
slackfetch —— minimal system information utility for Slackware
SYNOPSIS
slackfetch
DESCRIPTION
slackfetch displays a small set of system information relevant to a Slackware Linux system. Only information that can be determined reliably is shown.
slackfetch intentionally reports only core characteristics of a Slackware system, favoring clarity, consistency, and truthful output over exhaustive inventories. It aims to remain simple, fast, and POSIX-
compliant.
Desktop environment and window manager fields are omitted when they cannot be determined.
INSTALLATION
Local installation:
install -m 0755 slackfetch ~/.local/bin/slackfetch
System-wide installation:
install -m 0755 slackfetch /usr/bin/slackfetch
EXAMPLES
Window manager only (dwm):
$ slackfetch
________ r1w1s1@RachaelTyrell (ThinkPad T14 Gen 2i)
/ ______| os: Slackware 15.0+ (-current)
| |______ kernel: Linux 7.0.12 (x86_64)
\______ \ libc: glibc 2.42
______| | uptime: 1 hour, 57 minutes (age 394d)
| |________/ shell: bash 5.3.15 (tmux)
|____________ pkgs: 1297 (63 SBo, 12 Flatpak)
wm: dwm (XLibre 1.25.1)
Desktop environment (kde):
$ slackfetch
________ r1w1s1@x220 (ThinkPad X220)
/ ______| os: Slackware 15.0+ (-current)
| |______ kernel: Linux 7.1.0 (x86_64)
\______ \ libc: glibc 2.42
______| | uptime: 42 minutes (age 394d)
| |________/ shell: bash
|____________ pkgs: 1297 (63 SBo)
de: kde 6.4.0
wm: kwin (Wayland)
Disable colored output:
$ NO_COLOR=1 slackfetch
Override window manager detection:
$ SLACKFETCH_WM="dwm 6.8" slackfetch
Override machine model:
$ SLACKFETCH_MODEL="QEMU" slackfetch
ENVIRONMENT
SLACKFETCH_WM Override window manager detection. This is primarily intended for non-EWMH window managers such as twm(1), ctwm(1), or mwm(1). Window manager names are shown lowercase.
Example:
SLACKFETCH_WM="dwm 6.8" slackfetch
SLACKFETCH_MODEL Override machine model detection. The value is shown verbatim.
Example:
SLACKFETCH_MODEL="QEMU" slackfetch
NO_COLOR Disable colored output according to the NO_COLOR convention.
FILES
/etc/slackware-version Slackware version string.
/var/log/packages Installed package database used for the “pkgs:” field.
/lib64/libc.so.6, /lib/libc.so.6
glibc version used for the “libc:” field.
/sys/devices/virtual/dmi/id/sys_vendor
Machine vendor used for model selection.
/sys/devices/virtual/dmi/id/product_name
Machine model information when available.
/sys/devices/virtual/dmi/id/product_version
Fallback machine model information.
NOTES
Window manager detection relies on the EWMH _NET_WM_NAME property via xprop(1) when running under X11. Non-EWMH window managers may be specified using SLACKFETCH_WM. The “age” value is shown in the
“uptime:” field based on the installation time of aaa_base package. The “libc:” field is shown when glibc can be read from /lib64/libc.so.6 or /lib/libc.so.6. The “pkgs:” field is shown when
/var/log/packages is available. Packages ending in “_SBo” are counted as SlackBuilds.org packages. Flatpak applications are counted when the flatpak command is installed.
The “de:” field is shown only when XDG_CURRENT_DESKTOP is present. KDE and XFCE include a version when it can be read from their own tools. Desktop environment and window manager names are shown lower‐
case. The “wm:” field is shown only when a window manager can be determined. Under Wayland, slackfetch reports “Wayland” when WAYLAND_DISPLAY is present.
To add better model detection for another machine vendor, report the output of:
cat /sys/devices/virtual/dmi/id/sys_vendor
cat /sys/devices/virtual/dmi/id/product_name
cat /sys/devices/virtual/dmi/id/product_version
Also include the model name that should be displayed. Do not send serial numbers, UUIDs, or other unique machine identifiers.
SEE ALSO
uname(1), uptime(1), xprop(1)
AUTHORS
Ricardson Williams <r1w1s1@fastmail.com>
Derived from ufetch by J. Schillinger.
LICENSE
This project follows the same BSD license terms as the original ufetch project.
GNU June 26, 2026 SLACKFETCH(1)