1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:22:08 +02:00
tldr/pages/common/umask.md
2019-05-23 17:15:31 +01:00

19 lines
534 B
Markdown

# umask
> Manage the read/write/execute permissions that are masked out (i.e. restricted) for newly created files by the user.
- Display the current mask in octal notation:
`umask`
- Display the current mask in symbolic (human-readable) mode:
`umask -S`
- Change the mask symbolically to allow read permission for all users (the rest of the mask bits are unchanged):
`umask {{a+r}}`
- Set the mask (using octal) to restrict no permissions for the file's owner, and restrict all permissions for everyone else:
`umask {{077}}`