Skip to content

Instantly share code, notes, and snippets.

@theredfish
Created September 18, 2017 09:01
Show Gist options
  • Save theredfish/6a5b34a6b9d265718fbf82a16719e387 to your computer and use it in GitHub Desktop.
Save theredfish/6a5b34a6b9d265718fbf82a16719e387 to your computer and use it in GitHub Desktop.
Get block devices with their name, type(part, disk, rom, ...), size and model's name
#!/bin/bash
lsblk -io KNAME,TYPE,SIZE,MODEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment