How to set up umask for a Linux user.

<pre lang="bash">
# sets umask for all users
vi /etc/profile
# sets umask for a user
vi ~/.bashrc

Add the following umask line to the file.

<pre lang="bash">
umask 0022