The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
size of directory redbeard_06 Shell Programming and Scripting 19 08-08-2008 01:08 AM
Size of Directory tantric High Level Programming 1 06-28-2007 11:43 AM
size of directory with ls -l pascalbout AIX 2 02-21-2006 12:21 PM
size of a directory collins High Level Programming 6 10-15-2004 02:08 PM
Size of a directory minazk Shell Programming and Scripting 9 10-01-2002 03:03 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-25-2002
yls177
Guest
 

Posts: n/a
size of a directory?

hi, say i have the following directory structure a/b/c/d...

can i do df -kt /a/b/c/d and the output will gives me the total space of the directory space in d? or the output will just be the total space of the parent directory a.

hope its clear..
Forum Sponsor
  #2  
Old 11-25-2002
BSeanD's Avatar
Registered User
 

Join Date: Aug 2002
Location: Melbourne, Australia
Posts: 127
Have you tried it?

I did on a FreeBSD machine with no luck. Although I'm not sure if I understood the question.
  #3  
Old 11-25-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,609
I *think* yls177 meant "du", not "df".

If so, then yes, it will the space used by all the files in the d subdirectory. It will not include other stuff in /a.

"df" on the other will report on whatever filesystem d resides in. That might be /a or /a/b
or /a/b/c or even /a/b/c/d. It would depend on the mount table.

But those options don't make sense with any version of df that I know of.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0