From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9469 invoked by alias); 27 Feb 2012 17:22:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16799 Received: (qmail 13571 invoked from network); 27 Feb 2012 17:21:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.43 as permitted sender) Received-SPF: pass (google.com: domain of luomat@gmail.com designates 10.68.130.7 as permitted sender) client-ip=10.68.130.7; Authentication-Results: mr.google.com; spf=pass (google.com: domain of luomat@gmail.com designates 10.68.130.7 as permitted sender) smtp.mail=luomat@gmail.com; dkim=pass header.i=luomat@gmail.com 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= MIME-Version: 1.0 From: TJ Luoma Date: Mon, 27 Feb 2012 11:55:14 -0500 Message-ID: Subject: How to find owner of file or folder? To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 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?