Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to find owner of file or folder?
- X-seq: zsh-users 16799
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: How to find owner of file or folder?
- Date: Mon, 27 Feb 2012 11:55:14 -0500
- Authentication-results: mr.google.com; spf=pass (google.com: domain of luomat@xxxxxxxxx designates 10.68.130.7 as permitted sender) smtp.mail=luomat@xxxxxxxxx; dkim=pass header.i=luomat@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=rUw7hIkzxNdlVR1hLGVB+NLecxact4Bf8qoBfeMJVJE=; b=gnLQudoX1d/I/Nzs4aVm9XrZodx+r/fXB2w+UAH4MTCQvPi21hG/J+KkMt6TZ6Lpsf ++aYWw97sRHLm8XIQQIwJuMkXxrjW0edP4oO8x8CDL2LE4SyLGDbuuEzw6HLYRF3342J 1KVBcs+9EiO7D1HpdI6/NNqHfAT9n9p7G5IFg=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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