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.

Showing Answers 1 - 2 of 2 Answers

raki_ch

  • Nov 4th, 2005
 

"du" reports the disk usage by each sub-dir under the current directory. "du" *does not* show the free disk space. Use "df" for this.

  Was this answer useful?  Yes

anil piplani

  • Dec 3rd, 2005
 

Thats right.. du gives you "disk used" and not free disk space. some of the options for du are :

du -k   : returns the disk usage in KBs

du -k <directory name> : gives the disk usage by direcotry and all its sub-directories in KBs

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions