Re: How to list not only content in a diretory but the directory itself as well?

2019-07-10 Thread Jeff Layton
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

How to list not only content in a diretory but the directory itself as well?

2019-07-09 Thread Peng Yu
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. -- Regards, Peng