Originally Posted by linux_user2011
In Solaris we have umask (shell builtin) and /usr/bin/umask.
I believe most Linux distributions will only provide the built in umask. I've checked Debian Squeeze (bash 4.1.5(1)) and the manual page goes as follows:
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted
as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that
accepted by chmod(1). If mode is omitted, the current value of the mask is printed.
The -S option causes the mask to be printed in symbolic form; the default output is an
octal number. If the -p option is supplied, and mode is omitted, the output is in a form
that may be reused as input. The return status is 0 if the mode was successfully changed
or if no mode argument was supplied, and false otherwise.
I've compared that to OSX (10.6.7) /usr/bin/umask and it looks like the exact same set of parameters. Are you looking for any other resource that doesn't seem to be available on the bash's builtin?