How to calculate linux user umask

Suppose we have umask 0002 for our user default permission. Create new directory tmpdir directory created with its default permission 775 Create new file tmpfile file created with its default permission 664 Now, let's see how the file permission settings are calculated using boolean expressions with default umask 0002. For…