![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
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 05:08 AM |
| to compare total directory structure and get sizes of all f on two different servers | mannam srinivas | Shell Programming and Scripting | 3 | 04-07-2008 05:21 AM |
| How to check directory exist on servers | weonpc | Shell Programming and Scripting | 2 | 03-06-2008 06:29 AM |
| Shared Home directory between Unix servers | raghav288 | Filesystems, Disks and Memory | 0 | 02-22-2008 04:45 AM |
| How to find size of data trasnfered between 2 servers ? | neel.gurjar | SUN Solaris | 7 | 06-01-2007 12:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
why a directory size is different on two servers?
I had a directory dir001 on server a, and its size was 1024 bytes, and below was its content.
$ ls -li total 184 30728 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx 30729 -rwxr-x--- 1 user1 grp1 22197 Feb 26 14:33 Sxxxxxx 30730 -rwxr-x--- 1 user1 grp1 2153 Feb 26 14:33 Sxxxxxx 30733 -rwxr-x--- 1 user1 grp1 12493 Feb 26 14:33 Sxxxxxx 30734 -rwxr-x--- 1 user1 grp1 2900 Feb 26 14:33 Sxxxxxx 30732 -rwxr-x--- 1 user1 grp1 3340 Feb 26 14:33 Sxxxxxx 30736 -rwxr-x--- 1 user1 grp1 9464 Feb 26 14:33 Txxxxxx 30737 -rwxr-x--- 1 user1 grp1 2173 Feb 26 14:33 Txxxxxx 30740 -rw-r----- 1 user1 grp1 15444 Feb 27 16:38 Txxxxxx 30739 -rwxr-x--- 1 user1 grp1 2416 Feb 26 14:33 Txxxxxx then i had created its archive by tar and transfered it to server b through sftp, but this time its size was 512 bytes, and below was its content. # ls -li total 184 108550 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx 108551 -rwxr-x--- 1 user1 grp1 22197 Feb 26 14:33 Sxxxxxx 108552 -rwxr-x--- 1 user1 grp1 2153 Feb 26 14:33 Sxxxxxx 108554 -rwxr-x--- 1 user1 grp1 12493 Feb 26 14:33 Sxxxxxx 108555 -rwxr-x--- 1 user1 grp1 2900 Feb 26 14:33 Sxxxxxx 108553 -rwxr-x--- 1 user1 grp1 3340 Feb 26 14:33 Sxxxxxx 108556 -rwxr-x--- 1 user1 grp1 9464 Feb 26 14:33 Txxxxxx 108557 -rwxr-x--- 1 user1 grp1 2173 Feb 26 14:33 Txxxxxx 108559 -rw-r----- 1 user1 grp1 15444 Feb 27 16:38 Txxxxxx 108558 -rwxr-x--- 1 user1 grp1 2416 Feb 26 14:33 Txxxxxx does anybody know the reason and how to detect? can this command istat <i-node> <file system> meet the requirement? |
|
||||
|
Oh.
The size of a directory file has very little to do with what is actuall in the directory. That type of file just grows in size. If you remove some files - it stays the same size. So as an explanation - how about at one time the 1024 size directory had more files than it does now? When copied to another box it required 512 bytes for the new directory. |
![]() |
| Bookmarks |
| Tags |
| unresolved |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|