How can I set the default rwx permission to all users on every file which is created in the current shell?

We can use:

umask 777

This will set default rwx permission for every file which is created to every user.

Category: Shell Scripting Interview Questions.