[Techtalk] ls display

Anne Wainwright anotheranne at fables.co.za
Tue Oct 14 16:23:34 UTC 2008


Jennifer, hi,

see below

On Mon, 13 Oct 2008 19:41:55 -0400
Jennifer wrote:

|> I don't know if this helps, but it works for me in all my directories except
|> for ones with files without extensions. If the file doesn't have an
|> extension, it's at the bottom of the list, then directories, then everything
|> else above.

That's right. If you man ls you will see that the -X option orders no extension files first, and hence directories. The -r option reverses that.

Anne

|> 
|> Is that what you're seeing?
|> 
|> I don't know how to fix it...but I thought I'd help diagnose :)
|> 
|> On Mon, Oct 13, 2008 at 3:12 PM, Anne Wainwright
|> <anotheranne at fables.co.za>wrote:
|> 
|> > Hi,
|> >
|> > Such a simple thing.
|> >
|> > iIwant ls to display with all the directories bunched together at the
|> > end.
|> >
|> > $ ls -rlX
|> >
|> > -r to reverse the order
|> > -l for 'long' display
|> > -X for display in extension order.
|> >
|> > It appears to do it fine in a home subdirectory ~/somesubd$ and
|> > positions all the directories at the end (for handy viewing ready to $ cd)
|> >
|> > but in my home directory ~$ it decidedly doesn't do it. The directories are
|> > all mixed up with the normal files.
|> >
|> > What simple thing can I be missing?
|> >
|> > Anne
|> >
|> > girls first please!
|> > --
|> > so much to do, so little time :(
|> > _______________________________________________
|> > Techtalk mailing list
|> > Techtalk at linuxchix.org
|> > http://mailman.linuxchix.org/mailman/listinfo/techtalk
|> >
|> _______________________________________________
|> Techtalk mailing list
|> Techtalk at linuxchix.org
|> http://mailman.linuxchix.org/mailman/listinfo/techtalk


-- 
so much to do, so little time :(


More information about the Techtalk mailing list