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
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