Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to find owner of file or folder?



This is the only way that I know of to get the username who owns a
certain file or folder, such as /usr/local/

          command ls -ld /usr/local | awk '{print $3}'

(or `ls -dn` if you want the number instead of the name)

but that seems fairly inelegant.

Is there a better way?



Messages sorted by: Reverse Date, Date, Thread, Author