How To List Filesystems In Linux with lfs

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

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.

wget https://github.com/Canop/lfs/releases/download/v0.5.1/lfs_0.5.1.zip
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:

unzip lfs_0.5.1.zip
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

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.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Mel
Melhttps://unixcop.com
Unix/Linux Guru and FOSS supporter

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook