lsblk
List information about devices. tldr-pages
On Linux
Linux
List all storage devices in a tree-like format
lsblkIdentifyAlso list empty devices
lsblk --allIdentifyPrint the SIZE column in bytes rather than in a human-readable format
lsblk --bytesIdentifyOutput info about filesystems
lsblk --fsIdentifyUse ASCII characters for tree formatting
lsblk --asciiIdentifyOutput info about block-device topology
lsblk --topologyIdentifyExclude the devices specified by the comma-separated list of major device numbers
lsblk --exclude 1,7,...IdentifyAdd extra information to the output using a comma-separated list of columns (omit the + sign to only display the specified columns)
lsblk --output +NAME,ROTA,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...Identify