The way to Use Duf Command in Linux

4

This text will duvet a information on the use of the “duf” command in Linux. Duf is a unfastened and open supply command line application that may display useful resource utilization and unfastened area to be had on native or far off garage gadgets hooked up to a Linux gadget. It’s a sophisticated and extra consumer pleasant model of some other such command line application known as “df”, which is to be had by way of default in all main Linux distributions.

Major options of Duf Command

The principle options of the duf command line application comprises:

  • Talent to give knowledge in tabular structure.
  • Talent to turn coloured output for advanced clarity.
  • Classifies knowledge into other teams in line with the kind of the garage software.
  • Reinforce sorting of displayed effects.
  • Helps computerized resizing of terminal window matching the scale of output knowledge.
  • Talent to cover output for positive garage varieties.
  • Helps presenting knowledge in JSON layout (may also be exported to an exterior document).

Putting in Duf Command in Linux

Duf command may also be put in in Ubuntu from the snap retailer. To take action, run the command specified underneath in a terminal:

$ sudo snap set up duf-utility

Duf could also be to be had in repositories of your Linux distribution. So you’ll seek for it within the bundle supervisor and set up it from there. Extra distribution explicit applications and set up directions are to be had right here.

View Disk Utilization Data About All Gadgets and Filesystems

To turn tabular knowledge about used and unfastened area on native or far off garage drives, merely run the next command:

Relying on garage disks hooked up in your gadget, you will have to get some output very similar to this:

Disguise Data About Explicit Filesystems

You’ll be able to disguise explicit filesystem varieties by way of the use of “-hide-fs” transfer and supplying it a filesystem sort as a controversy. This is an instance command:

The command above will disguise all filesystem entries having “squashfs” as the sort.

You’ll be able to use a couple of comma separated values as arguments within the command.

View Data About Explicit Filesystem Varieties Best


You’ll be able to use the “-only-fs” command line technique to view details about explicit filesystem varieties handiest and conceal the entirety else. This is an instance command:

You’ll be able to use a couple of comma separated values as arguments within the command. This selection is reverse of the “hide-fs” command line transfer defined above.

Disguise Complete Software Sort Classes or Explicit Software Varieties

If you wish to disguise a complete software sort class, you’ll use the “-hide” transfer and upload a class sort as a controversy. For example to cover all “special” sort gadgets, run a command within the following layout:

You’ll be able to use the similar command to cover explicit software varieties. For example to cover “loop” fixed gadgets, run a command within the following layout:

The “-hide” transfer takes “network”, “special”, “local”, “loops”, “fuse”, and “binds” as imaginable values. You’ll be able to use a couple of comma separated values as arguments within the command.

View Details about Explicit Software Varieties Best

If you wish to view utilization details about a couple of specific software varieties handiest, use the “-only” transfer. This command is the other of the “-hide” transfer discussed above.

The “-only” transfer takes “network”, “special”, “local”, “loops”, “fuse”, and “binds” as imaginable values. You’ll be able to use a couple of comma separated values as arguments within the command.

Kind Output The use of Explicit Columns

You’ll be able to kind the disk utilization output the use of the heading of a selected column sort by way of the use of “-sort” command line transfer. For example, to kind the tabular knowledge the use of measurement, run a command within the following layout:

The “-sort”  command line possibility takes “size”, “used”, “mountpoint”, “avail” and different such column headings as imaginable arguments. Complete listing of imaginable arguments may also be discovered at the guy web page.

View Utilization in JSON Layout and Export Knowledge to a Report

To view disk utilization knowledge in JSON layout, use the “-json” transfer”.

To export JSON knowledge to a document, run a command within the following layout (exchange filename as wanted):

Additional Lend a hand at the Duf Command

After putting in the duf command command, you’ll run the next command to understand extra about its utilization choices.

You’ll be able to additionally take a look at the duf guy web page to be had right here.

Conclusion

The duf command has some further choices over the normal df command incorporated by way of default in maximum Linux distributions. Its tabular knowledge illustration and inclusion of extra filesystem varieties supplies a a lot better figuring out of disk utilization patterns in your Linux gadget.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More