linux check current umask 1

linux check current umask

grep '^[^#]' /etc/login.defs | grep UMASK

# output
UMASK           022

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a command that prints the contents of the file /etc/login.defs.
3. The third line is a command that filters the output of the second line.
4. The fourth line is a comment.
5. The fifth line is a command that prints the output of the third line.

Similar Posts