Linux Commands Helper

💬 Your AI-powered Linux assistant

umask Command - Set Default File Creation Permissions

umask sets the default permissions (file mode creation mask) for newly created files and directories. It determines which permission bits will not be set on files and directories created by the user.

Syntax

umask [options] [mask]

Examples

umask

Display the current umask value.

umask 022

Set the default mask so new files are created with 755 (directories) or 644 (files) permissions.

Notes

  • Common umask values: 022 (default), 002, 077.
  • Changing umask affects only the current shell session unless set in a profile file.
  • Does not affect existing files or directories.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame