Multiple choice technology operating systems

If umask is 0022, what is the by default permission of a file?

  1. 644

  2. 655

  3. 666

  4. 777

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The umask value 0022 means permissions are masked with 022 for files. Files default to 666 (rw-rw-rw-). Subtracting 022 gives 644 (rw-r--r--). This means read-write for owner, read-only for group and others. For directories, the default would be 755 (rwxr-xr-x).