4

I type the umask command in linux shell and it returns 002 as output. I know what for umask command used. But what 002 represents. please help me

1

2 Answers 2

13

It shows the default permission levels by which a file will be created.
Subtracting umask from base permission would give you actual file permissions.
All the files will be created with 664 (666-002) permissions and dir with 775 (777-002) permissions.

2
1

It means that files created will not be world-writable by default.

Not the answer you're looking for? Browse other questions tagged or ask your own question.