Show Linux Partitions Command

www.la‮iruttu‬.com
Show Linux Partitions Command

To show the partitions on a Linux system, you can use the fdisk command with the -l flag. For example:

sudo fdisk -l

This will show a list of all the partitions on the system, along with information about each partition such as the device name, the partition type, and the size of the partition.

Alternatively, you can use the lsblk command to show the block devices and their partitions on the system. For example:

lsblk

This will show a list of the block devices on the system, along with information about each device such as the device name, the size of the device, and the partitions that are contained on the device.

Keep in mind that both of these commands will require superuser privileges to run, so you will need to use sudo to execute them.

Created Time:2017-10-30 14:27:18  Author:lautturi