To list disk partitions in Linux, you can use the lsblk
command. This command lists information about all available or the specified block devices.
To list all disk partitions, you can use the following syntax:
$ lsblkSourceww:w.lautturi.com
This will display a list of all block devices, including disk partitions, attached to the system.
You can also use the fdisk
command to list disk partitions. This command allows you to manipulate disk partition tables.
To list all disk partitions, you can use the following syntax:
$ fdisk -l
This will display a list of all disk partitions, including their device names, sizes, and types.
You can also use the parted
command to list disk partitions. This command allows you to create, destroy, resize, move, and copy disk partitions.
To list all disk partitions, you can use the following syntax:
$ parted -l
This will display a list of all disk partitions, including their device names, sizes, and types.
Finally, you can use the df
command to list disk partitions and their usage information. This command displays the amount of available disk space on the file system containing each file name argument.
To list all disk partitions and their usage information, you can use the following syntax:
$ df -h
This will display a list of all disk partitions, including their device names, sizes, used space, available space, and usage percentages.
You can also use the df
command with the -T
option to display the file system type for each partition.
For example:
$ df -hT
This will display a list of all disk partitions, including their device names, sizes, used space, available space, usage percentages, and file system types.