Skip to content

Commit 15a44de

Browse files
mumararshaikhAdnan Ahmed
authored and
Adnan Ahmed
committed
Update README.md (Idnan#32)
chmod function updated for beter clarity.
1 parent d85384a commit 15a44de

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,33 @@ Lets you change the read, write, and execute permissions on your files.
120120
```bash
121121
chmod -options filename
122122
```
123+
Syntax : (for numericals role assignment)
124+
```bash
125+
chmod nnn /path/to/file
126+
```
127+
Where n is number from 0 to 7
128+
129+
<ul>Here,
130+
<li>First number is for Owner</li>
131+
<li>Second number is for group</li>
132+
<li>Third number is for Other</li>
133+
</ul>
134+
135+
<b>Following number are used for permissions</b></br>
136+
0 - no permissions</br>
137+
1 - execute</br>
138+
2 - write</br>
139+
3 - write and execute</br>
140+
4 - read</br>
141+
5 - read and execute</br>
142+
6 - read and write</br>
143+
7 - read, write and execute.</br>
144+
145+
For example to provide full access to only Owner
146+
147+
```bash
148+
chmod 700 path/to/file
149+
```
123150

124151
### c. `cp`
125152
Copies a file from one location to other.

0 commit comments

Comments
 (0)