Owner of a directory

inode0 inode0 at gmail.com
Wed Jul 19 16:25:49 UTC 2006


On 7/19/06, Tech Rams <techmailing at yahoo.com> wrote:
> hi
>     I am looking for a way to know the owner of a directory/file. There is the
>     obvious way of parsing the output of ls, but did not find much beyond that.
>     Is there a better way (that works inside of a shell script)?

stat --format=%U filename

perhaps?

John




More information about the redhat-list mailing list