how to list file and sort by filename using ls

Jerry Feldman gaf at blu.org
Mon Apr 24 16:07:01 EDT 2006


On Monday 24 April 2006 3:46 pm, Zhao Peng wrote:
> Now I should say good afternoon :)
>
> Using either "ls -ul" or "ls -cl"(which are supposed to sort by name
> according to manual, if I understood and used correctly), I just can't
> list files and sort them by filenames.
>
> Google results of key word ""sort by name" linux ls" is pretty much the
> same as man ls, not helpful.
>
> OS: Redhat Enterprise.
Try "info ls"
GNU likes to live up to it's GNU is Not Unix.
Here is a section that should give you what you want. 
An excerpt:
10.1.3 Sorting the output
-------------------------

These options change the order in which `ls' sorts the information it
outputs.  By default, sorting is done by character code (e.g., ASCII
order).


-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9



More information about the gnhlug-discuss mailing list