umask

umask (built-in Bash command)

The manual page and help for the umask built-in Bash command. The umask command sets the user file creation mask to the specified mode.

umask (function)

The manual page of the umask () function. Umask sets the file process creation mask (umask) of the calling process to the & 0777 mask (that is, only the file permission bits of the mask are used) and returns the previous value of the mask.