











CompTIA
Exam Vouchers
Save money on CompTIA exams
| Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
| TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more | * ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i Online practice tests
Certification sites Online university Online college Online education Distance learning Software forum Server administration forum Programming resources
|
|  |
| Author |
ls: sorting and hidden files
|
PD
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
ls: sorting and hidden files
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
Report this post to a moderator
|
|
06-27-02 03:25 PM
|
|
Jimchip
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: ls: sorting and hidden files
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.
Report this post to a moderator
|
|
06-27-02 04:25 PM
|
|
PD
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: ls: sorting and hidden files
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
Report this post to a moderator
|
|
06-27-02 04:25 PM
|
|
Dave Uhring
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: ls: sorting and hidden files
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
Report this post to a moderator
|
|
06-27-02 08:25 PM
|
|
|
Featured site: MCSE, MCSD, CompTIA, CCNA training videos
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF. |
|
ExamNotes forum archive
|