Lsblk is a very nice utility installed by default on practically all Linux distributions: we can use it to retrieve a vast range of information about all the block devices attached to the system. In this article we will see how it works and how to use it.
In this tutorial you will learn:
- How to use the lsblk utility to retrieve information about block devices
- What is the meaning of the columns displayed in the default utility output
- How to specify the columns to be displayed and format the output as json or as a list
- How to display information about a specific device.