← All commands
Topic hub Security & Permissions
Windows Linux Security & Permissions Permissions

Windows umask equivalent in Linux

Controls default permissions for newly created files.

Windows umask
Linux equivalents
Debian/Ubuntu same command
umask 027
Fedora same command
umask 027
Arch same command
umask 027

Overview

What this command does

Controls default permissions for newly created files.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

Set default permissions mask

Controls default permissions for newly created files.

umask 027

Set default permissions mask

umask --help

Show command help when supported

man umask

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

umask 027

Walkthrough

Examples with explanations

# Windows equivalent: umask
umask 027

Reference

Common options and variations

Command or optionUse
umask 027Set default permissions mask
umask --helpShow command help when supported
man umaskOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command umask 027 Same command on this distribution.
Fedora same command umask 027 Same command on this distribution.
Arch same command umask 027 Same command on this distribution.

Keep learning

Related Security & Permissions commands