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.

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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

You might also likeRELATED

Install Anaconda Navigator Graphical Interface in centos 8

In this article we will Install Anaconda Navigator Graphical Interface in centos 8. Anaconda is a widely-used, open-source distribution of the Python programming language....

How to Install Apache ServiceMix on CentOS 8

In this article we will learn How to Install Apache ServiceMix on CentOS 8. Apache ServiceMix is a runtime container for service-oriented architecture components,...

How to Install Lighttpd Web server on CentOS 8

In this post, you will learn how to Install Lighttpd on CentOS 8 Lighttpd is an open-source, secure, fast, flexible, and more optimized web server...