lsblk
The lsblk (list block devices) command in Linux is used to list information about all available or specified block devices.
Block devices are storage devices that can be used to store data in blocks (e.g., hard drives, solid-state drives, USB drives, and partitions). This command provides detailed information about these devices, such as their names, sizes, types, and mount points.
The simple lsblk
command can be used:
This simply displays the all the block devices, along with their partitions and mount points. The output displays the following:
sda is a disk with 400 GB of storage
sda has partitions of sda1 and sda2
sda1 is mounted at
/mnt/test-mount
refer to the mount/unmount sub-section in this section for more information about mounting filesystems: https://jarrettgxz-sec.gitbook.io/linux/storage/mount-umount)
Last updated