Show Linux Partitions Command

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:

  1. Open a terminal window on your Linux system.
  2. Type the following command:
lsblk

This will list all available block devices on your system, including their size, type, and mount points (if any).

  1. 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.

  1. 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.

Leave a Comment