The 'lsblk' command is used to list your block devices (drives) on your system.
- List all storage devices (that aren't empty) in a tree-like format:
lsblk
- List all devices including empty devices:
lsblk -a
- Print sizes in bytes rather than in human-readable format:
lsblk -b
- Output info about filesystems:
lsblk -f
- Exclude the devices specified by the MAJ device number:
lsblk -e 7
NOTE The above removes loopback devices, which is useful if you want to filter out snaps from 'lsblk' output.
- Exclude the devices specified by the comma-separated list of MAJ device numbers:
lsblk -e 7,8
- Specify columns for the output using a comma-separated list:
lsblk -o NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT
- Specify and additioanl column added to the default output:
lsblk -o +UUID
- Output info about device topology:
lsblk -t
NOTE The above is equivalent to...
'-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE,RA,WSAME'
- Output info about topology and sort by column name:
lsblk -t -x SCHED
- Use ASCII characters for tree formatting:
lsblk -i
REFERENCED:
โบ https://gitlab.com/dwt1/vidman
WANT TO SUPPORT THE CHANNEL?
๐ฐ Patreon: https://www.patreon.com/distrotube
๐ณ Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
๐๏ธ Amazon: https://amzn.to/2RotFFi
๐ Teespring: https://teespring.com/stores/distrotube
DT ON THE WEB:
๐ธ๏ธ Website: http://distro.tube
๐ GitLab: https://gitlab.com/dwt1
๐จ๏ธ Mastodon: https://fosstodon.org/@distrotube
๐ซ Reddit: https://www.reddit.com/r/DistroTube/
๐ฝ๏ธ Odysee: https://odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
๐ Brave Browser - https://brave.com/
๐ฝ๏ธ Open Broadcaster Software: https://obsproject.com/
๐ฌ Kdenlive: https://kdenlive.org
๐จ GIMP: https://www.gimp.org/
๐ป VirtualBox: https://www.virtualbox.org/
๐๏ธ Doom Emacs: https://github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!
...
https://www.youtube.com/watch?v=nEKqJUD9yAs