Owner of a directory
John O'Loughlin
j.oloughlin at qmul.ac.uk
Wed Jul 19 16:14:39 UTC 2006
ls -ld /path/to/dir
in a script you could
ls -ld /path/to/dir | awk '{print 3}'
there are probably lots of other ways as well
John
On Wed, 19 Jul 2006, Tech Rams 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)?
>
> thanks,
> Rams
>
>
> ---------------------------------
> Do you Yahoo!?
> Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
More information about the redhat-list
mailing list