From 4329a7352f5f2d68e27742f4f69902a7de37f21d Mon Sep 17 00:00:00 2001 From: Adnan Ahmed Date: Mon, 24 Apr 2017 22:57:03 +0400 Subject: [PATCH] add more detail link on chmod command --- README.md | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/README.md b/README.md index 22f6f0a..005c28d 100644 --- a/README.md +++ b/README.md @@ -116,37 +116,10 @@ cat < file1 > file2 #copy file1 to file2 ``` ### b. `chmod` -Lets you change the read, write, and execute permissions on your files. +Lets you change the read, write, and execute permissions on your files. For more information on this command check this [link](https://ss64.com/bash/chmod.html). ```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.