Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to find owner of file or folder?
- X-seq: zsh-users 16804
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: How to find owner of file or folder?
- Date: Mon, 27 Feb 2012 13:30:28 -0500
- Authentication-results: mr.google.com; spf=pass (google.com: domain of luomat@xxxxxxxxx designates 10.68.189.39 as permitted sender) smtp.mail=luomat@xxxxxxxxx; dkim=pass header.i=luomat@xxxxxxxxx
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=RKjtx+fdQc84d501nljuTVCbobT2jadZtZMKGqRyYB8=; b=bjWkMy1McYbD/psOeLlYePBz8CcmqwiGRENUgVDpdbTXJBWzKLuFyqV4XVPfAABL82 VHdQUAlBBJg3F9bxIMGVoeusuM8lteFhYWFSmVaedxna53Fgl2heHzdUXckhbpxpxn+s j+s6W8HJKTqP8IRQxsnGUFgoqkAkua3secyVg=
- In-reply-to: <20120227173150.GH59682@dan.emsphone.com>
- 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
- References: <CADjGqHuYfi4h+2OgNouuc3RXpHYexOnqr0ExLUax7H+uFkQg3g@mail.gmail.com> <20120227173150.GH59682@dan.emsphone.com>
On Mon, Feb 27, 2012 at 12:31 PM, Dan Nelson <dnelson@xxxxxxxxxxxxxxx> wrote:
> $ zmodload zsh/stat
> $ zstat -H fileinfo /usr/local
> $ echo $fileinfo[uid]
> 0
> $ ls -ld /usr/local
> drwxr-xr-x 42 root wheel 42 Feb 19 17:05 /usr/local/
> $ typeset fileinfo
> fileinfo=(atime 1313171206 blksize 4096 blocks 5 ctime 1329692755 device
> 4201426224 gid 0 inode 3366 link '' mode 16877 mtime 1329692755 nlink 42
> rdev 4294967295 size 42 uid 0 )
Oh cool… I didn't know about $fileinfo either… I actually thought
about doing something along the same lines.
THERE IS SO MUCH ABOUT ZSH I DON'T KNOW! And I've been using it since
1990-something (1995? I think)
Thanks again, and also to Danek Duvall.
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author