From: TJ Luoma <luomat@gmail.com>
To: Dan Nelson <dnelson@allantgroup.com>
Cc: zsh-users@zsh.org
Subject: Re: How to find owner of file or folder?
Date: Mon, 27 Feb 2012 13:30:28 -0500 [thread overview]
Message-ID: <CADjGqHuiMcw683qEm_7yX77ExxYYT8VdtTLavB1t9Zb30pNZ9Q@mail.gmail.com> (raw)
In-Reply-To: <20120227173150.GH59682@dan.emsphone.com>
On Mon, Feb 27, 2012 at 12:31 PM, Dan Nelson <dnelson@allantgroup.com> 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
next prev parent reply other threads:[~2012-02-27 18:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-27 16:55 TJ Luoma
2012-02-27 17:31 ` Dan Nelson
2012-02-27 18:30 ` TJ Luoma [this message]
2012-02-27 18:38 ` Dan Nelson
2012-02-27 19:55 ` TJ Luoma
2012-02-27 17:35 ` Danek Duvall
2012-02-27 17:37 ` Peter Stephenson
2012-02-27 18:18 ` TJ Luoma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADjGqHuiMcw683qEm_7yX77ExxYYT8VdtTLavB1t9Zb30pNZ9Q@mail.gmail.com \
--to=luomat@gmail.com \
--cc=dnelson@allantgroup.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).