Home > Archive > alt.os.linux > June 2002 > ls: sorting and hidden files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ls: sorting and hidden files
PD

2002-06-27, 10:25 am

Hi there,

In recent versions of Linux distributions, there seems
to be a change on how "ls" prints out the hidden files.

In particular, typing "ls - alF" used to result in
printing first the hidden files/directories and then
the regular files/directories.

Now, this command prints out both hidden and regular files
sorting them our with respect to the fist letter of the file name
excluding the dot ".".

Is there any way to revert to the old way?
I read ls man page but I could not find something relevant.

Thank you in advance.

PD

Jimchip

2002-06-27, 11:25 am

On Thu, 27 Jun 2002 16:05:59 GMT, PD wrote:
>
> In recent versions of Linux distributions, there seems
> to be a change on how "ls" prints out the hidden files.
>
> In particular, typing "ls - alF" used to result in
> printing first the hidden files/directories and then
> the regular files/directories.
>
> Now, this command prints out both hidden and regular files
> sorting them our with respect to the fist letter of the file name
> excluding the dot ".".
>
> Is there any way to revert to the old way?
> I read ls man page but I could not find something relevant.


I don't recall the 'old way' but is "ls -laX" what you want?

--
Jim jimchip 'at' spamcop.net
Capitalism is a system used by
some people to exploit other people.
Socialism is the reverse.
PD

2002-06-27, 11:25 am

Jimchip wrote:
> On Thu, 27 Jun 2002 16:05:59 GMT, PD wrote:
>
>>In recent versions of Linux distributions, there seems
>>to be a change on how "ls" prints out the hidden files.
>>
>>In particular, typing "ls - alF" used to result in
>>printing first the hidden files/directories and then
>>the regular files/directories.
>>
>>Now, this command prints out both hidden and regular files
>>sorting them our with respect to the fist letter of the file name
>>excluding the dot ".".
>>
>>Is there any way to revert to the old way?
>>I read ls man page but I could not find something relevant.

>
>
> I don't recall the 'old way' but is "ls -laX" what you want?



Hi Jimchip,

No "ls -alX" is not the answer I am looking for; the man page says
for -X: "sort alphabetically by entry extension" but in my box it
produces a rather strange shorting (??)

Thanks anyway!

PD

Dave Uhring

2002-06-27, 3:25 pm

PD wrote:

> Jimchip wrote:


> No "ls -alX" is not the answer I am looking for; the man page says
> for -X: "sort alphabetically by entry extension" but in my box it
> produces a rather strange shorting (??)


$ export LC_ALL=POSIX

Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net