Thursday, December 20, 2018

Libparted tools the libparted library presents both gui and textbased partitioning tools

If you plan on adding a new disk in the future, learning how to partition will come in handy. Linux supports the following partitioning tools:

Fdisk Tools – This is composed of the text-based tools: fdisk, cfdisk, and sfdisk. These tools are great for use in partitioning. However, it could be a bit overwhelming for beginners who are not yet familiar with partitioning.

libparted Tools – The libparted library presents both GUI and text-based partitioning tools. One particular example is GParted as shown in the screenshot below. The interface makes it easier to use for beginners.

GPT fdisk Tools – These are tools created for GPT (Globally Unique Identifier Partition Table) disks using the fdisk tools.

Figure 12: GParted - GUI-based partitioning tool

Here are some commands that you can use to check the existing disk space on your computer:

Commands

What it does

df -h

This command displays the disk space usage in all of the mounted devices. The -h option presents the results in a human-readable output, using G for gigabytes or M for megabytes sizes.

du /home/edulaney/files/

This command displays all the files inside the specified directory and their corresponding file sizes. You can also specify a filename.

du -s /home/edulaney/files/

The –s option provides the total file size of the specified directory