coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make ls -l dir1 dir2 in the same order as dir1,2 are specified


From: Carl Edquist
Subject: Re: make ls -l dir1 dir2 in the same order as dir1,2 are specified
Date: Sun, 28 Mar 2021 09:29:43 -0500 (CDT)

On Sat, 27 Mar 2021, L A Walsh wrote:

On 2021/03/27 12:34, Glenn Golden wrote:
    $ ls -fl dir1 dir2

 will produce what the OP asked for.
--
Interesting.  How can ls return the files in the order they
are on disk?

What you want is the '-U' option (same as --sort=none). This will display items in the order they appear on the command line, and will list directory entries in the order they appear on disk.

(The '-f' option that Glenn mentioned implies '-U', but also has a couple other affects, like listing dot-files (-a) and disabling color.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]