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.)