File PermissionsLesson 40Free preview
Bash Ownership
This lesson is part of Bash · All levels
Summary
Each file and folder in Linux has read (r), write (w), and execute (x) permissions for three parties: owner, group, and others. The ls -l command shows a string of permissions like -rwxr-xr-x whose three blocks represent the user, group, and other. Understanding this permission is the basis of using chmod, chown, and chgrp.
Key points
- Permission to read in sequence: user, group, other
- R is 4, w is 2, x is 1, so rwx is 7.
- The first character indicates the type of entry, d for the directory
- The number 755 means rwx for the user and rx for the other.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.