Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to find owner of file or folder?
In the last episode (Feb 27), TJ Luoma said:
> 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.
Note that "fileinfo" is just an arbitrary variable name I picked. See the
zshmodules manpage for more info.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author