Subject: Re: stat(1)
To: Peter Seebach <seebs@plethora.net>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 12/28/2001 00:13:57
In message <200112280452.fBS4qIP12836@guild.plethora.net>, Peter Seebach writes
:
>In message <20011228002343.0C50DB5@proven.weird.com>, Greg A. Woods writes:
>>Among many I've seen there's this one, the eighth link on Google today:
>
>I have one of these. Mine does output like:
>
>File: <stdin>+
>Major: 5 Minor: 0
>Owner: 100 (seebs) Group: 4 (tty)
>Mode: 0620 (crw--w----) Type: character special
>Inode: 10644 Device: 18874368
>Links: 1
>Last access: Thu Dec 27 22:51:48 2001
>Last modify: Thu Dec 27 22:51:48 2001
>Last change: Thu Dec 27 22:51:48 2001
>
>File: /home/seebs/
>Size: 7168 Blocks: 14
>Owner: 100 (seebs) Group: 100 (user)
>Mode: 0755 (drwxr-xr-x) Type: directory
>Inode: 1024 Device: 18874375
>Links: 70
>Last access: Thu Dec 27 22:51:34 2001
>Last modify: Thu Dec 27 22:51:34 2001
>Last change: Thu Dec 27 22:51:34 2001
>
>I think everyone has done one.
Mine only puts out the times -- inode and size are easy enough to get
from ls, as are owner and group. To me, the important thing is a
format that's easily parseable by scripts.
--Steve Bellovin, http://www.research.att.com/~smb
Full text of "Firewalls" book now at http://www.wilyhacker.com