Chmod Exercises
chmod Practice
Create a new file called chmod.exercises.
Question: What are the default permissions for the new file?
Bonus Question: What was the command to view the file permissions?
Change chmod.exercises permissions to -r--r--r--
Change the file permissions to Read only for the owner, group and all other users.
Question: What was the command for changing the file permissions to -r--r--r--?
Change chmod.exercises permissions to -rw-r-----
Change the file permissions to match the following:
- owner:
ReadandWrite - group:
Read - other: no permissions (
None)
Question: What was the command for changing teh file permissions to -rw-r-----?
Change chmod.exercises permissions to -rwxr-x--x
Change the file permissions to match the following:
- owner:
Read,WriteandExecute - group:
ReadandExecute - other:
Execute
Question: What was the command for changing the file permissions to -rwxr-x--x?
Note
After completing the exercises feel free to delete the chmod.exercises file.