Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #26716

Re: ls question -- dirs only

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Carlos E. R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: ls question -- dirs only
Date Fri, 19 Apr 2019 22:56:45 +0200
Lines 11
Message-ID <ghur0dFk5l0U2@mid.individual.net> (permalink)
References <d8592e3c-9c8c-4be8-a604-ba040e2b41b8@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net hKjxu8BGbEw7N1Ty2UJ9uwxRC0zIzoDWlfRGXVx1stjd282fG8
Cancel-Lock sha1:HwcHA7ErhHFNTj2waS94knFQC4Q=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
In-Reply-To <d8592e3c-9c8c-4be8-a604-ba040e2b41b8@googlegroups.com>
Content-Language en-US
Xref csiph.com comp.os.linux.misc:26716

Show key headers only | View raw


On 19/04/2019 22.22, pH wrote:
> Is there a way to make ls display only directories?
> 
> I've looked through the man pages. The  "--group-directories-first" toggle works fine but is there a way to list the directories *only*?

Try "tree -d" instead. You will have to play with the options to get a 
similar or to your liking display.

-- 
Cheers,
        Carlos E.R.

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ls question -- dirs only pH <wb6dwp@gmail.com> - 2019-04-19 13:22 -0700
  Re: ls question -- dirs only Bit Twister <BitTwister@mouse-potato.com> - 2019-04-19 15:39 -0500
  Re: ls question -- dirs only Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2019-04-19 16:51 -0400
  Re: ls question -- dirs only Grant Taylor <gtaylor@tnetconsulting.net> - 2019-04-19 14:53 -0600
    Re: ls question -- dirs only pH <wb6dwp@gmail.com> - 2019-04-19 19:37 -0700
      Re: ls question -- dirs only Andreas Kohlbach <ank@spamfence.net> - 2019-04-20 12:10 -0400
  Re: ls question -- dirs only "Carlos E. R." <robin_listas@es.invalid> - 2019-04-19 22:56 +0200
  Re: ls question -- dirs only Robert Heller <heller@deepsoft.com> - 2019-04-19 16:18 -0500
  Re: ls question -- dirs only Eli the Bearded <*@eli.users.panix.com> - 2019-04-19 21:28 +0000
    Re: ls question -- dirs only Grant Taylor <gtaylor@tnetconsulting.net> - 2019-04-19 20:41 -0600
  Re: ls question -- dirs only The Natural Philosopher <tnp@invalid.invalid> - 2019-04-20 09:30 +0100

csiph-web