diff --git a/README.md b/README.md index 4271e1f..22f6f0a 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,33 @@ Lets you change the read, write, and execute permissions on your files. ```bash chmod -options filename ``` +Syntax : (for numericals role assignment) +```bash +chmod nnn /path/to/file +``` +Where n is number from 0 to 7 + + + +Following number are used for permissions
+0 - no permissions
+1 - execute
+2 - write
+3 - write and execute
+4 - read
+5 - read and execute
+6 - read and write
+7 - read, write and execute.
+ +For example to provide full access to only Owner + +```bash +chmod 700 path/to/file +``` ### c. `cp` Copies a file from one location to other.