lsblk – Command To Display Block Device Information In Linux

Have you ever dealt with block devices in Linux? Well, it is unlikely if you are not a file system pro, but as a system admin you should know some basic commands that can help you debug a file system-related problem in Linux. In this article, we will discuss the lsblk command, which displays block device related information in Linux.

Download/Install/Configure

The lsblk command comes as a part of util-linux package which is pre-installed in most of the Linux distributions.

Pros

Pre-installed in most Linux distributions

Provides lots of options

Cons

Some options require good knowledge of block devices in Linux

Conclusion

lsblk is a good utility for fetching information related to block devices. Though it is not for normal users but a handy tool for system administrators and Linux pros. Keep it in your tool set, it’ll definitely help you some day.

Have you ever used lsblk command or any other similar command line utility? Share your experience with us.

Share this:

About Himanshu Arora

Himanshu Arora is a software programmer, open source enthusiast and Linux researcher. He writes technical articles for various websites and blogs. Some of his articles have been featured on IBM developerworks, ComputerWorld and in Linux Journal. He is the administrator of the blog and also contributes useful posts on the blog. Visit his google+ profile or mail him at himanshuz.chd[at]MAILSERVER[dot]com (where MAILSERVER=gmail)

Himanshu Arora is a software programmer, open source enthusiast and Linux researcher. He writes technical articles for various websites and blogs. Some of his articles have been featured on IBM developerworks, ComputerWorld and in Linux Journal. He is the administrator of MyLinuxBook and also contributes useful posts on the blog. When he is not busy writing articles, he likes to explore various food joints in his city, explore new hill stations and party at weekends. You can catch him on Google+.