To show Linux partitions on your system, you can use the lsblk
command, which lists all available block devices (i.e., storage devices) in a tree-like format.
Here’s how to use the lsblk
command:
- Open a terminal window on your Linux system.
- Type the following command:
lsblk
This will list all available block devices on your system, including their size, type, and mount points (if any).
- If you want to see more details about the partitions, use the
-f
option:
lsblk -f
This will show the filesystem type of each partition.
- You can also use the
fdisk
command to list all partitions on your system:
sudo fdisk -l
This will display a list of all available partitions on your system, along with their size, type, and other details.
By using the lsblk
and fdisk
commands, you can easily view and manage partitions on your Linux system.