umask(2) - man - phpman

Look up a command

 

Not found locally for umask. Try Google search | cheat.sh


TLDR: umask (tldr-pages)

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}}
intro (2)            - introduction to system calls

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 11:03 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!