The umask is used for setting up the default permissions in Linux and Unix. The default umask valus is 0022. The umask representation is diffrent than the chmod octal represetantion. I will explain you why. The default permission of the…