File PermissionsLesson 41Free preview
Bash Modify (chmod)
This lesson is part of Bash · All levels
Summary
The chmod command changes the access permissions of a file or directory, either with a number (octave notation) or a symbol (u, g, o, a). The quickest way to add execution permissions is chmod +x skrip.sh, whereas the number 755 is commonly used for executable scripts. Only the owner or root can change the permissions.
Key points
- Chmod 755 file sets permissions numerically
- Chmod u+x adds execution to the owner
- u = user, g = group, o = other, a = all
- R is applying the change recursively
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.