umask
View or set the default permission mask for new files
umask controls what permissions new files have when created. umask 022 means new files get 644, directories get 755. Set in ~/.bashrc to persist.
Example
$ umask
0022
Tip: Type it yourself in the terminal below - reading is not the same as doing.