lfs-0.7.1 is not a library.
lfs
A linux utility listing your filesystems.
Besides traditional columns, the dsk
column helps you identify your "disk":
remov
: a removable device (such as an USB key)HDD
: a rotational diskSSD
: a solid state storage device, usually quite fastRAM
: an in-memory device (such as zram)crypt
: a crypted disk
All sizes are based on the current SI recommendations: 1M is one million bytes.
Installation
Precompiled binary
You can download it from https://github.com/Canop/lfs/releases
From source
You need the Rust tool chain.
cargo install lfs
Usage
lfs
By default, lfs only shows mount points backed by normal block devices (i.e. disks).
To show them all, use
lfs -a
To get the output as JSON, do lfs -j
or lfs -a -j
.
You may pass a path to have only the relevant device shown. For example:
Internals
If you want to display the same data in your Rust application, have a look at the lfs-core crate.