owner of file or dir

Ed Wilts ewilts at ewilts.org
Fri Dec 16 15:53:48 UTC 2005


On Fri, Dec 16, 2005 at 06:39:01PM +0000, Muhammad Rizwan wrote:
> Is it possible to know the user name who owns the file or directory.
> Just user name not any other info.

You can parse out the result from ls -l, but this is cleaner:

$ stat --format %U .bashrc
ewilts

-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program




More information about the redhat-list mailing list