mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 14:42:07 +02:00
umask: add page (#834)
This commit is contained in:
parent
1d24e09063
commit
eb878ce3dd
1 changed files with 19 additions and 0 deletions
19
pages/linux/umask.md
Normal file
19
pages/linux/umask.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue