3.2.2.2 Ownership Directives

%g

File’s group name, or numeric group ID if the group has no name.

%G

File’s numeric group ID.

%u

File’s user name, or numeric user ID if the user has no name.

%U

File’s numeric user ID.

%m

File’s mode bits (in octal). If you always want to have a leading zero on the number, use the ’#’ format flag, for example ’%#m’.

The file mode bit numbers used are the traditional Unix numbers, which will be as expected on most systems, but if your system’s file mode bit layout differs from the traditional Unix semantics, you will see a difference between the mode as printed by ‘%m’ and the mode as it appears in struct stat.

%M

File’s type and mode bits (in symbolic form, as for ls). This directive is supported in findutils 4.2.5 and later.