command to check the block devices attach in linux machine
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. lsblk basic usage In its most basic usage, when invoked without any specific option or argument, the lsblk utility will produce a tree-like output including all the block devices attached to the operating system. Here is an example: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 232.9G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 231.9G 0 part └─luks-5794a0b4-7082-4769-b86b-bd27a544361a 253:0 0 231.9G 0 crypt ├─fingolfin_vg-root_lv 253:1 0 35G 0 lvm / ├─fingolfin_vg-swap_lv 253:...