Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About knowing the owner of a file

0 views
Skip to first unread message

parag...@hotmail.com

unread,
May 8, 2008, 6:15:48 AM5/8/08
to
hi All,
Is there any way given a file I will be able to know the name of hte
owner of the file
-Parag

pk

unread,
May 8, 2008, 6:30:43 AM5/8/08
to

For example:

stat -c %U file

man stat for the details. Or, if you don't have stat:

ls -l file | awk '{print $3}'

--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.

0 new messages