State of directories with the same name

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Apr 24 16:56:56 UTC 2013


Doll, Margaret Ann wrote:
> I am doing an "rsync" from one array to another.
>
> I looked at the the files on the disk to which I am copying this morning.
> "ls" showed three copies of some of the folders and one copy of others.
> "ls -sal" showed that the three copies of a folder, seemed to have the
> same contents.
>
> I made a new directory newadmin, "cd"ed into the admin directory, "mv" all
> the files in the admin directory to newadmin, "cd .." and did another
> listing.  Now all the directories were there, but the duplicates were
> gone.   Why did this happen?
>
> nas-0-0 dist]# ls
> admin       bco    cha       jad
> admin       bco    class
> admin       bco    class
>
> ls -sal admin
> total 4
> 0 drwxrwxrwx  4 nobody nobody   52 Dec 25  2011 .
> 4 drwxrwxrwx 34 root   root   4096 Apr 21 08:28 ..
> 0 drwxrwxrwx  3 nobody nobody   55 Sep 14  2007 atipa
> 0 drwxrwxrwx  2 nobody nobody   87 Oct 15  2007 export-restore
> 0 -rw-rw-rw-  1 nobody nobody    0 Sep 10  2007 ge.out
> [root at nas-0-0 dist]# ls -sal admin*
<snip>
This would get admin, and everything under it... including, if they existed,
~admin/admin/admin.

        mark




More information about the redhat-list mailing list