LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dysk

filesystem information in formatted tables

TLDR

Get standard overview of disks
$ dysk
copy
Sort by free size
$ dysk -s free
copy
Include only HDD disks
$ dysk -f 'disk = HDD'
copy
Exclude SSD disks
$ dysk -f 'disk <> SSD'
copy
Display disks with high utilization or low free space
$ dysk -f 'use > 65% | free < 50G'
copy

SYNOPSIS

dysk [options]

DESCRIPTION

dysk displays filesystem information in a formatted table. It shows mount points, disk types, sizes, usage, and filesystem types with color-coded output.Provides filtering and sorting capabilities for focused analysis.

PARAMETERS

-a, --all

Show all mount points, including pseudo, removable and remote ones
-s, --sort field
Sort by field (free, size, used, filesystem, etc.)
-f, --filter expr
Filter expression
-c, --csv
Output as CSV
-j, --json
Output as JSON
--cols cols
Choose which columns are shown
-l, --list-cols
List the available columns
--units si|binary
Size units: SI (1M = 1,000,000 B) or binary (1M = 1,048,576 B)
--color auto|yes|no
Control colored output

FILTER EXPRESSIONS

disk = HDD

Only HDDs
disk = SSD
Only SSDs
use > 65%
Usage over 65%
free < 50G
Less than 50GB free

INSTALL

sudo apt install dysk
copy
sudo pacman -S dysk
copy
sudo apk add dysk
copy
sudo zypper install dysk
copy
brew install dysk
copy
nix profile install nixpkgs#dysk
copy

CAVEATS

Linux only: dysk reads /proc/mounts and sysfs, so it does not run on macOS or BSD. Disk type detection (SSD vs HDD) depends on what the kernel exposes and can be blank for virtual or remote filesystems. The project was previously named lfs.

SEE ALSO

df(1), lsblk(8), duf(1)

RESOURCES

Copied to clipboard
Kai