Intermediate Linux & Shell Scripting
Q69 / 100

What is the purpose of "umask" in Linux?

Correct! Well done.

Incorrect.

The correct answer is A) It sets a default permission mask that determines which permission bits are removed (masked out) from newly created files and directories

A

Correct Answer

It sets a default permission mask that determines which permission bits are removed (masked out) from newly created files and directories

Explanation

The umask value is subtracted from the default permissions (666 for files, 777 for directories) to determine the actual permissions of newly created files/directories — a common umask of 022 results in files created with 644 and directories with 755.

Progress
69/100