Given a device file (ex:
/dev/sda) how can I get a list of all relevant partitions?
/dev/sda1 /dev/sda2 /dev/sda3 ...
I know there are many ways to get information about block devices, such as
blkid to name a few, but I want a solution that is the most succinct (ie, doesn't use an enormous number of pipes to
What is the most condensed one liner to solve this problem?
Notes: I'm using linux (specifically ubuntu) and using either terminal or shell script to solve this problem.