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:
- Open a terminal window on your Linux system.
- Type the following command:
lsblkThis 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
-foption:
lsblk -fThis will show the filesystem type of each partition.
- You can also use the
fdiskcommand to list all partitions on your system:
sudo fdisk -lThis 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.
