View previous topic :: View next topic |
Author |
Message |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Fri Sep 03, 2004 4:30 am Post subject: What's the simplest way to find the size of a directory? |
|
|
This may be simple, but I don't know how.
TIA _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DNAspark99 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_luke_skywalker_2.gif)
Joined: 03 Sep 2004 Posts: 321
|
Posted: Fri Sep 03, 2004 4:49 am Post subject: |
|
|
du -h . |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
exeter Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 Jul 2004 Posts: 189
|
Posted: Fri Sep 03, 2004 4:49 am Post subject: |
|
|
That depends what you mean. You mean the size of all files in that directory? Including subdirectories or no?
Depending which you want,
Code: |
ls -s /dir | grep total
|
or
will do it. The first excludes subdirectories, the second does not. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Fri Sep 03, 2004 5:21 pm Post subject: |
|
|
Yes, the total including subdirectories. Thanks for the reply, I'll give a go. _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|