umask Linux Command
Sets the default permission mask for newly created files and directories.
What does umask do?
Sets the default permission mask for newly created files and directories.
Syntax
umask [mode]Practical example
umask 022Related Permission Commands
chgrpChanges the group ownership of a file or directory.
getfaclDisplays the Access Control List (ACL) of a file or directory.
chownChanges the owner and/or group of a file or directory.
setfaclSets or modifies the Access Control List (ACL) for a file or directory.
chmodChanges the read, write, and execute permissions of files and directories.
sudo -lLists the allowed and forbidden sudo commands for the current user.