Command folder size
I am searching a command which shows a folder size.
Thanx :Pengy: |
ls -l will show size and attributes.
|
Quote:
total 8 drwxr-xr-x 2 cmfans ftponly 4096 Aug 9 2004 botdir/ drwxr-xr-x 9 cmfans ftponly 4096 Apr 3 13:14 www/ where tells me the folder size? :confused: |
ls -s
If you want it to show the size in megabytes when the files are that big use: ls -sh |
Quote:
total 1M 1M botdir/ 1M www/ :confused: |
So in your case, use
ls -sh botdir/ ls -sh www/ The first thing it'll output is the total size of the directory ("folder" in Linux-speak), then the size of each file. |
Quote:
ls -sh www/ total 34M ... (and the size of each file) 34MB is the size of files inside www but don't calculate the size of subfolders which are inside in www. Any ideas? :confused: |
du -sh botdir/
du -sh www/ This is what I should have told you to use from the start, but I just found out about it. ^_^;; |
Thanx dude worked!!!
:Pengy: |
All times are GMT -5. The time now is 05:06 PM. |