I want to see similar output like:
ls -l /etc/php5/php.ini
Which would give me:
-rw-r--r-- 1 root root 40344 Jun 14 14:33 /etc/php5/php.ini
Except the file in question is a directory, and doing ls -l
on it would list it's contents.
How can I have it give me that permissions/info for a directory, or is there a better way?
Use
ls -ld
for directories. Quoting from the man page:Use
stat dirname
- just to be different!Use the
-d
option:use the d flag