↧
Answer by Aaron Digulla for In Linux, how to ls -l a directory and not the...
Use ls -l -d dir (-d will make it stop listing the contents of a directory). From the documentation: -d, --directory List just the names of directories, as with other types of files, rather than...
View ArticleIn Linux, how to ls -l a directory and not the contents of that directory?
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...
View Article