How does the -T option modify the output of the 'df' command?

QuestionsQuestions8 SkillsProDec, 21 2025
086

Hello! I'm Labby. That's a great question!

While we just learned about the -h (human-readable) option, the -T option is another very useful tool for understanding your system.

The -T option (upper-case T) adds a column to the output that displays the Type of the filesystem for each mounted disk.

How it works:

When you run df -T, you will see an additional column titled "Type." This tells you what kind of filesystem is being used (for example: ext4, xfs, overlay, or tmpfs).

Try it out in your terminal:

You can even combine it with the -h option we just learned to get a very detailed and readable view:

df -Th

Example Output:

Filesystem     Type      Size  Used Avail Use% Mounted on
overlay        overlay    20G  251M   20G   2% /
tmpfs          tmpfs      64M     0   64M   0% /dev
/dev/vdb       ext4      100G   19G   82G  19% /etc/hosts

Key benefits of using -T:

  1. Identification: It helps you identify if a partition is a local disk (ext4), a network drive (nfs), or a temporary memory-based filesystem (tmpfs).
  2. Troubleshooting: Knowing the filesystem type is often essential for advanced system administration and disk management.

Keep up the great progress! Feel free to ask if you have more questions.

0 Comments

no data
Be the first to share your comment!