Information About

Umask




umask (abbreviated from '''''u'''ser file creation mode '''mask''''') is a ''')

- as a result of the Bitwise Exclusive OR operation of the argument and the full access mode ''777''.

- as a result of the Bitwise AND of the unary Complement of the argument (using Bitwise NOT ) and the full access mode ''777''.

Most Unix Shell s provide an umask command which affects all child processes executed in this shell.


EXAMPLES


To set the mode of newly created files to ''0600'' (''-rw
--'') we need

777''8'' ^ ~177''8'' = 600''8''

Thus, umask has to be run with the value ''177'':

umask 177


SEE ALSO




EXTERNAL LINKS