Forrest logo
back to the du tool

du:ai:2c19b

show size difference in gb between two directories
$ du -sh dir1 dir2 | awk '{print $1}'
try on your machine

Get the size of two directories in gigabytes using 'du' command and 'awk' to extract only the size.

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.

Questions that are answered by this command:

  • show size difference in gb between two directories?
back to the du tool