In Linux, how to ls -l a directory and not the contents of that directory?

Posted by Jack on Super User See other posts from Super User or by Jack
Published on 2010-05-17T07:21:46Z Indexed on 2010/05/17 7:30 UTC
Read the original article Hit count: 275

Filed under:
|

For example, if I have a directory containing files file1 and file2, and a directory dir1, then "ls -l file1" will show details just for file1. Doing the same thing for dir1 will instead show the contents of dir1. Is there a way to treat dir1 like file1?

© Super User or respective owner

Related posts about linux

Related posts about command-line