UMASK(1SH) COMMAND REFERENCE UMASK(1SH)
NAME
umask - set user's file creation mask (sh built-in)
SYNOPSIS
umask [ nnn ]
DESCRIPTION
The user file creation mask is set to the octal value nnn.
If nnn is omitted, the current value of the mask is printed.
The mask is basically the complement of the file mode. The
bits set in the mask will not be set when a file is created
or in some types of mode changes (see umask(2) and
chmod(1)).
EXAMPLES
The following command sets the user's file creation mask to
002, which means that files are created with mode 664,
meaning the owner and owner's group have read and write
permission and others have only read permission.
umask 2
RETURN VALUE
[NO_ERRS] Command completed without error.
CAVEATS
Invalid arguments are not ignored or reported. For example,
the command umask filename will cause the file creation mask
to be set to 0.
SEE ALSO
break(1sh), cd(1sh), chdir(1sh), chmod(1), continue(1sh),
csh(1csh), echo(1sh), eval(1sh), exec(1sh), exit(1sh),
export(1sh), hash(1sh), login(1), pwd(1sh), read(1sh),
readonly(1sh), return(1sh), set(1sh), sh(1sh), shift(1sh),
test(1sh), times(1sh), trap(1sh), type(1sh), ulimit(1sh),
unset(1sh), wait(1sh), which(1sh), chmod(2), execve(2),
umask(2).
Printed 10/17/86 1
%%index%%
na:72,91;
sy:163,113;
de:276,447;
ex:723,320;
rv:1043,133;
ca:1176,249;
se:1425,901;
%%index%%000000000118