umask
For platform.
Get or set default file creation permissions.
Command Type
built-in
Signature
> umask {flags} (permissions)
Parameters
permissions: The permissions to set on created files.
Input/output types:
| input | output |
|---|---|
| nothing | string |
Examples
Print current default file creation permissions.
> umask
Make new files read-only to group and inaccessible to others.
> umask rwxr-x---
Notes
When setting a new mask, the previous mask will be returned.
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.