September 15th, 2006

du command in linux

du command in Linux is used too check the amount of disk space being used by a directory and its sub directories , if we give the du command without specifying a directory than the commands work for r the pwd or the directory in which we are working currently

Here are some of the switches than can be used with the du command

du -a Shows counts for all files and directories.
du -b Displays size in bytes.
du -c Prints a total for all arguments after they are processed.
du -h Creates human readable output, appending letters such as M for megabytes.
du -k Displays size in kilobytes.
du -m Displays size in megabytes.
du -s Displays a summary total for each argument.
du -x Skips directories containing file systems other than the one contained in the argument

the imax | 3:20 pm | Linux/Unix

This entry was posted on Friday, September 15th, 2006 at 3:20 pm and is filed under Linux/Unix. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

Comments are closed.