Saturday, May 31, 2008

Is ‘du’ a command? If so, what is its use?

Yes, it stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk. "du" reports the disk usage by each sub-dir under the current directory.

some of the options for "du" are :

  • du -k : returns the disk usage in KBs

  • du -k : gives the disk usage by direcotry and all its sub-directories in KBs.

"du" does not show the free disk space. Use "df" for this.

No comments: