Can one list permission bits numerically...

Modulok modulok at gmail.com
Mon Mar 17 09:46:50 UTC 2008


> > Perhaps I missed it somewhere in the man page, but is there a way to
> > list files with their permission bits displayed as numeric (octal, as
> > in chmod(1)), instead of symbolic? Something like:
> >
> > ls -lF -imaginaryFlag
> >
> > 0755 4 Modulok Modulok 512 Dec 17 18:39 dir1/
> > 0644 1 Modulok Modulok 101786 Feb 23 05:53 file1
> > 0644 1 Modulok Modulok 140097 Feb 13 23:38 file2
> > ....
> Maybe something like this will suit you:
>
> stat -f "%p %l %u %g %z %m %N" *

Thank you! That will do nicely.
-Modulok-


More information about the freebsd-questions mailing list