![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Have you tried it?
I did on a FreeBSD machine with no luck. Although I'm not sure if I understood the question. |
|
#3
|
||||
|
||||
|
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 |