I want to display the number of sectors that exist on a particular disk
partition. I know I can do so using the command:
# fdisk -l /dev/<partition-device-name>
For example: # fdisk -l /dev/sda1
Is there any other (one line) command that will display the number
of sectors of a disk partition?
Note: This is a query for the RHCSA-level audience
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.