1. To give yourself permission to execute a file thatyou own:
chmod u+x file1
This gives you execute permission for the file "file1".
2. To give members of your group permission toread a file:
chmod g+r file2
This gives the group permission to read the file "file2".
3. To give read permission to everyone for aparticular type of file:
chmod a+r *.pub
This gives everyone permission to read all fileswith the extension .pub.
4. To give the group write and execute permission:
chmod g+wx $HOME/SCCS
This gives all members of the group permission to placefiles in the directory SCCS in your home directory. Theycan also list (ls) the contents of this directory.