The parted command in Linux is a command-line utility for working with partitions on a hard disk. It allows you to create, modify, delete and move partitions on the disk.
Some common uses of the parted command include:
parted also provides other functions such as displaying partition information, formatting partitions, etc. For more information about the parted command, you can use the "man parted" command in the Linux terminal.
The syntax of the parted command looks like this:
Options:
Set the alignment type of the section
Run in script mode without interactive input
Output machine-readable output format
Display a list of partitions on the device
Output information about the parted version
Output help on using the command
Device:
Specifies the path to the device that the parted command will work with. For example, /dev/sda.
Examples of using the parted command
1. parted /dev/sda mkpart primary 0% 100%
2. parted /dev/sda resizepart 1 10GB
3. parted /dev/sda rm 1
4. parted /dev/sda move 1 50%
Note that superuser (root) rights are required to execute the parted command.
Apply the discount by inserting the promo code in the special field at checkout: