Retrieving numeric filemode

Mark admin at
Tue Mar 9 12:40:48 PST 2004

----- Original Message ----- 
From: "Dan Nelson" <dnelson at>
To: "Mark" <admin at>
Cc: <freebsd-questions at>
Sent: Tuesday, March 09, 2004 9:32 PM
Subject: Re: Retrieving numeric filemode

> In the last episode (Mar 09), Mark said:
> > Is there way (via find or ls, or something else), to retrieve
> > the numeric filemodes? For instance, if "ls -la" says
> > "-r--r--r--", I would like to get its numeric equivalent, 444.
> You can use "stat -r" to get the mode.  It's the 3rd field.

Thanks! Just what the doctor ordered. :)

- Mark

More information about the freebsd-questions mailing list