Retrieving numeric filemode

Dan Nelson dnelson at allantgroup.com
Tue Mar 9 12:32:20 PST 2004


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.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list