check umask of file linux code example Example: linux check current umask grep '^[^#]' /etc/login.defs | grep UMASK # output UMASK 022