Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Available disk space for a subdirectory

Status
Not open for further replies.

pjb

Programmer
May 1, 2001
148
US
Is there a way to find the % of available disk space for A sub-directory? I am interested in /var/tmp and /var/spool. When I do a df -k, I only get stats for the /var and not it's subs.
 
pjb,

The df command reports on the number of free blocks for a particular file system. There are no limitations on the particuar subdirectories within that file system. To find out how much space a particular directory is using, try the du command.

Ex. du -sk /var/tmp

Hope this helps.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top