Unix Technical Forum

Strange size of the folder

This is a discussion on Strange size of the folder within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I removed all the file from a directory. Still it's showing 13476 K bytes. Like below. mas:/fs/dm/dc>ls -la ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:02 AM
rrr
 
Posts: n/a
Default Strange size of the folder

Hi,
I removed all the file from a directory. Still it's showing
13476 K bytes. Like below.

mas:/fs/dm/dc>ls -la
total 26960
drwxrwsrwx 2 Support support 13799424 Jan 3 01:13 ./
drwxrwsrwx 4 Support support 512 Jan 1 09:20 ../


mas:/fs/dm>du -k
13476 ./dc


In the above lines, the dc directory contains no files. But, It's
showing as 13476KB.

It's a AIX 4.2 version box.


Thanks in advance,
Dattu

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:02 AM
Stefaan A Eeckels
 
Posts: n/a
Default Re: Strange size of the folder

On 3 Jan 2007 04:15:57 -0800
"rrr" <datteswararao@gmail.com> wrote:

> I removed all the file from a directory. Still it's showing
> 13476 K bytes. Like below.
>
> mas:/fs/dm/dc>ls -la
> total 26960
> drwxrwsrwx 2 Support support 13799424 Jan 3 01:13 ./
> drwxrwsrwx 4 Support support 512 Jan 1 09:20 ../
>
>
> mas:/fs/dm>du -k
> 13476 ./dc
>
>
> In the above lines, the dc directory contains no files. But, It's
> showing as 13476KB.
>
> It's a AIX 4.2 version box.


A directory is also a file. Thus, if it needs to contain a large number
of file entries, it will expanded to hold these entries. When you
remove the files, the size of the directory file itself is not reduced.
Simply remove the directory and re-create it to free the storage it
uses.

--
Stefaan A Eeckels
--
Even in business, the greatest reputations are sometimes the result of
the glamour of city superstition. I could point to railway chairmen
reputed indispensable, whom the shareholders and the travelling public
might with great profit and comfort to themselves send to St. Helena
with a pension of £0,000 a year. -- George Bernard Shaw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com