[NTLUG:Discuss] Re: True order of files in a directory.
    Kyle Davenport 
    Kyle_Davenport at compusa.com
       
    Tue Aug 30 09:20:32 CDT 2005
    
    
  
*** Authentication Certificate ***
is everyone tired of this subject yet?
> For grins I did the following.
>
> mkdir /tmp/sorttest
> cd /tmp/sorttest
> touch 5
> touch 2
> touch 1
> touch 4
> touch 3
> #and when I did..
> ls -fla
> #they were all in ..well...numerical order.
In ext3fs, above works for me - ls -f (or ls -U) gives the order I created,
as can be seen with debugfs from the e2fsprogs package (I created in the
order 5 3 1 2 4):
# echo 'ls /home/kdaven/testdir' | debugfs /dev/hda2
debugfs 1.35 (28-Feb-2004)
debugfs:   327789  (12) .    310691  (12) ..    327790  (12) 5    327791
(12) 3
 327814  (12) 1    327815  (12) 2    327816  (4024) 4
The order is only alphabetic tho on a jfs and on a smbfs.
Kyle
    
    
More information about the Discuss
mailing list