Re: ls lacking a feature?



William wrote:
"Bernard Liang" <b_liang@xxxxxxxxxxxx> wrote in message
news:e7usv4$29o5$1@xxxxxxxxxxxxxxxxxxxxx
how does one perform the equivalent MS-DOS's "dir /a:d" (directory
listing) in *ix (say, linux)?

One possibility:

find * -type d -prune

Without the -prune it will show subdirectories too.

-Wm



Another option: -maxdepth 1
.



Relevant Pages

  • Re: Some personal linux observations
    ... even if you knew the Linux equivalent command was something to ... the dir listing is much clearer and includes more ... with loads of excess info when they do not want it is obscure to me. ... It is a problem with ALL complex systems. ...
    (alt.os.linux)
  • Re: Linux v2.6.9 and GPL Buyout
    ... I don't think he likes Linux much but he said he ... and Blake to get me the "approved" listing. ... I pointed out that Novell had disclosed the Unixware SMP stuff at ... and he would claim any contribution from any IBM employee in Linux. ...
    (Linux-Kernel)
  • Re: Slightly OT: meaning of dir size in ls -l
    ... You need GnuPG to verify this message ... >> output when it's listing a directory entry? ... > On Linux it does mean, the total BLOCKS allocated for all files ...
    (comp.unix.shell)
  • apache2, mod_autoindex, "missing" entries in auto index
    ... I just discovered that apache2's auto index of a directory omits ... subdirectories for which access is restricted. ... listing shows both directories. ... In my opinion, C is a library programming language ...
    (Debian-User)
  • Re: strange output of "ls -l"
    ... > old to Linux, and using Fredora Core 2. ... When I use the long listing ... > command ls -l on my system, the output on on the screen shows all the ...
    (comp.os.linux.misc)