Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Canop/dysk

Repository files navigation

lfs

CI MIT Latest Version Chat on Miaou

A linux utility listing your filesystems.

screenshot

Besides traditional columns, the disk column helps you identify your "disk" (or the mapping standing between your filesystem and the physical device) :

  • remov : a removable device (such as an USB key)
  • HDD : a rotational disk
  • SSD : a solid state storage device
  • RAM : an in-memory device (such as zram)
  • LVM : a device mapped to one or several disks using LVM
  • crypt : a crypted disk

All sizes are normally based on the current SI recommendations (1M is one million bytes) but can be changed with --units binary (then 1M is 1,048,576 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, which are usually the "storage" filesystems you're interested into.

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:

lfs dot

Use lfs --help to list the other arguments.

Internals

If you want to display the same data in your Rust application, have a look at the lfs-core crate.

About

A linux utility to get information on filesystems, like df but better

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published