BleepingComputer.com: Determine the file sizes of a directory

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Determine the file sizes of a directory

#1 Guest_Plimsol_*

  • Group: Guests

Posted 07 May 2004 - 12:06 PM

Unix/Linux has a nice command that will allow you to find out how much disk space a particular directory is using. This command is the du.

There are two flags that you will want to use with this command:

The -h flag will specify that you want the sizes to be listed in human readable format like K for Kilobyte or G for Gigabyte.

The -s flag will produce a summary instead of giving you information about every subdirectory.

You give the directory you would like to check as the argument. If no directory is specified, it will you your current directory.

The syntax for this command is:

du -sh directoryname


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users