bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: ls -- sort directories over files


From: Bauke Jan Douma
Subject: Re: ls -- sort directories over files
Date: Mon, 07 Apr 2008 21:00:18 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

Trans wrote on 07-04-08 06:12:
Okay. I can't help but sound a little bit like an ass on this one...

I just can't believe that after all this time I still can't run ls and
get a listing sorted directories before files. I've been waiting for
this option for years. I've always thought, surely someone would get
around to it eventually. After all. it has to be the most obvious
directory sorting in the bloody universe. As is made dumbfoundingly
evident by the default behavior of every graphical file browser known
to man.

Once more, there is even a patch floating around out there for this.
It's been over a year since I last dug it up, but I'll dig it up again
if need be. I suspect however, that this is a very simple fix for
someone who knows a little about the innards of the coreutils.

Please, can we put this simple little annoyance to rest once and for
all?

Thanks,
Trans

I suppose your little annoyance really enjoyed your
cultivation of it, but the simple facts are:

$> /bin/ls  -la --group-directories-first /usr/src/linux/
total 41204
drwxrwxr-x 20 root root    4096 Mar  4 07:08 .
drwx--x--x 14 root root    4096 Apr  7 20:36 ..
drwx--x--x  2 root root   16384 Feb 24 13:32 .tmp_versions
drwxrwxr-x 68 root root    8192 Feb 12 08:41 Documentation
drwxrwxr-x 27 root root    4096 Dec 18 22:55 arch
drwxrwxr-x  2 root root    4096 Feb 24 00:40 block
drwxrwxr-x  3 root root   12288 Feb 24 10:26 crypto
drwxrwxr-x 72 root root    4096 Feb 24 13:31 drivers
drwxrwxr-x 62 root root    8192 Feb 24 10:26 fs
drwxrwxr-x 44 root root    4096 Feb 24 13:28 include
drwxrwxr-x  2 root root    4096 Feb 24 13:31 init
drwxrwxr-x  2 root root    4096 Feb 24 00:40 ipc
drwxrwxr-x  5 root root    8192 Feb 24 13:31 kernel
drwxrwxr-x  6 root root    8192 Feb 24 10:26 lib
drwxrwxr-x  2 root root    4096 Feb 24 00:40 mm
drwxrwxr-x 42 root root    4096 Feb 24 00:43 net
drwxrwxr-x  9 root root    4096 Dec 24 18:32 scripts
drwxrwxr-x  4 root root    4096 Feb 24 10:27 security
drwxrwxr-x 19 root root    4096 Feb 24 10:27 sound
drwxrwxr-x  3 root root    4096 Dec 24 18:32 usr
-rw-------  1 root root     523 Feb 24 13:31 ..tmp_kallsyms1.o.cmd
-rw-------  1 root root     523 Feb 24 13:31 ..tmp_kallsyms2.o.cmd
-rw-------  1 root root     662 Feb 24 13:31 ..tmp_vmlinux1.cmd
-rw-------  1 root root     678 Feb 24 13:31 ..tmp_vmlinux2.cmd
-rw-------  1 root root   60573 Feb 24 13:30 .config
-rw-------  1 root root   58531 Feb 24 13:28 .config.old
-rw-rw-r--  1 root root     607 Dec 18 22:55 .gitignore
-rw-rw-r--  1 root root    3657 Dec 18 22:55 .mailmap
-rw-------  1 root root      70 Feb 24 13:31 .missing-syscalls.d
-rw-------  1 root root  995847 Feb 24 13:31 .tmp_System.map
-rw-------  1 root root 1287320 Feb 24 13:31 .tmp_kallsyms1.S
-rw-------  1 root root  320164 Feb 24 13:31 .tmp_kallsyms1.o
-rw-------  1 root root 1287320 Feb 24 13:31 .tmp_kallsyms2.S
-rw-------  1 root root  320164 Feb 24 13:31 .tmp_kallsyms2.o
-rwx--x--x  1 root root 5269187 Feb 24 13:31 .tmp_vmlinux1
-rwx--x--x  1 root root 5474020 Feb 24 13:31 .tmp_vmlinux2
-rw-------  1 root root       2 Feb 24 13:31 .version
-rw-------  1 root root     666 Feb 24 13:31 .vmlinux.cmd
-rw-------  1 root root     640 Feb 24 13:31 .vmlinux.o.cmd
-rw-rw-r--  1 root root   18693 Dec 18 22:55 COPYING
-rw-rw-r--  1 root root   91484 Dec 18 22:55 CREDITS
-rw-rw-r--  1 root root    1581 Dec 18 22:55 Kbuild
-rw-rw-r--  1 root root   93316 Dec 18 22:55 MAINTAINERS
-rw-rw-r--  1 root root   51310 Dec 18 22:55 Makefile
-rw-------  1 root root  296837 Feb 24 13:32 Module.symvers
-rw-rw-r--  1 root root   16930 Dec 18 22:55 README
-rw-rw-r--  1 root root    3119 Dec 18 22:55 REPORTING-BUGS
-rw-------  1 root root  995847 Feb 24 13:31 System.map
-rw-------  2 root root 2118104 Feb 24 13:31 bzImage
lrwxrwxrwx  1 root root      13 Mar  8 12:54 make.res -> make.res.3964
-rw-------  1 root root  410688 Feb 24 13:35 make.res.3964
-rwx--x--x  1 root root 5474020 Feb 24 13:31 vmlinux
-rw-------  1 root root 6584541 Feb 24 13:31 vmlinux.o

$> /bin/ls --version
ls (GNU coreutils) 6.9.91
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard Stallman and David MacKenzie.




reply via email to

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