How To List Filesystems In Linux with lfs

In this post you will learn How To List Filesystems In Linux with lfs.

Lfs is a commandline tool to display the information of the mounted disks in your Linux system. The developer of Lfs claims it is slightly a better alternative to df -h command. lfs tool can list filesystem in linux with better composition.

lfs has following improvement as compared to df:

  • Command lfs helps you recognize your disks by labelling them “rem” (removable), “HDD”, “SSD”.
  • lfs uses SI Units only. You don’t have to open the help and check the right argument for the correct size units.
  • lfs displays the type of filesystem.
  • Unlike the df command, lfs displays the output in a tabular column format. Df displays the output in listing format.

Lfs is an open source program written in RUST. The code is freely available in GitHub under MIT license.

Install Lfs:

Use the following command to install lfs.

Install LFS command to list filesystems on Linux
Install LFS command to list filesystems on Linux

Extract the lfs zip file using the following command:

mv  build/ lfs_0.5.1/ 

Now move the lfs_0.5.1 directory to /usr/local/bin using the following command:

mv lfs_0.5.1/lfs /usr/local/bin/

lfs is now installed and can be used.


lfs command only lists the filesystems backed by block devices looking like real disks. To list all filesystem use the following command:

lfs -a

lfs is very handy to check the information in tabular form it help to understand the filesystem better.

You can use lfs as per your need.

Unix/Linux Guru and FOSS supporter


Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook