Technique one – the symbolic method

The following command will add the read/write and execute permissions to the file wherein u is for user, g is for group, and o is for others:

    $ chmod ugo+rwx file_name
  

Alternatively, you can use the following command:

    $ chmod +rwx file_name
  

Get Learning Linux Shell Scripting - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.