Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E. R." Newsgroups: comp.os.linux.misc Subject: Re: ls question -- dirs only Date: Fri, 19 Apr 2019 22:56:45 +0200 Lines: 11 Message-ID: References: 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: Content-Language: en-US Xref: csiph.com comp.os.linux.misc:26716 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.