Re: How to list not only content in a diretory but the directory itself
From:
Jeff Layton
Subject:
Re: How to list not only content in a diretory but the directory itself as well?
Date:
Wed, 10 Jul 2019 07:22:56 -0400
User-agent:
Evolution 3.32.3 (3.32.3-1.fc30)
On Tue, 2019-07-09 at 16:00 -0500, Peng Yu wrote:
> Hi
>
> `ls somedir` without -d will show the content of a directory. With -d,
> it will show the info of the directory itself. Is there a way to show
> both in a single command? Thanks.
>
ls -a?
The "." entry would be for the directory itself. Maybe I'm
misunderstanding your question however.
--
Jeff Layton <address@hidden>