Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to find owner of file or folder?



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