Forrest logo
back to the parted tool

parted:tldr:2562a

parted: List partitions on all block devices.
$ sudo parted --list
try on your machine

The command "sudo parted --list" is used to list the partitions on your hard disk. Here's a breakdown of the command:

  • "sudo": It is a command used in Unix-like operating systems to run a specific command with administrative privileges. By using "sudo", you give yourself temporary root or superuser permissions, allowing you to execute commands that require higher privileges.

  • "parted": It is a command-line utility for creating, resizing, and managing disk partitions on Linux systems. It allows you to manage partitions without the need for a graphical interface.

  • "--list": This is an argument or option passed to the "parted" command. It tells the "parted" utility to list all the partitions on the hard disk.

Combining these elements, the "sudo parted --list" command allows you to view the existing partitions on your hard disk.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the parted tool