0
0
Linux CLIscripting~10 mins

Permission notation (rwxrwxrwx) in Linux CLI - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Permission notation (rwxrwxrwx)
Start: File Permissions
Divide into 3 groups
Owner permissions
Group permissions
Read? Write? Execute?
Combine letters: r,w,x or - for none
Final notation: rwxrwxrwx
Permissions are split into three groups: owner, group, and others. Each group has read (r), write (w), and execute (x) permissions shown as letters or '-' if missing.
Execution Sample
Linux CLI
ls -l example.txt
-rwxr--r-- 1 user group 0 Apr 27 12:00 example.txt
Shows file permissions for example.txt in rwxr--r-- format.
Execution Table
StepPermission GroupPermission LetterMeaningResulting Symbol
1OwnerReadOwner can read the filer
2OwnerWriteOwner can write to the filew
3OwnerExecuteOwner can execute the filex
4GroupReadGroup can read the filer
5GroupWriteGroup cannot write to the file-
6GroupExecuteGroup cannot execute the file-
7OthersReadOthers can read the filer
8OthersWriteOthers cannot write to the file-
9OthersExecuteOthers cannot execute the file-
10CombineAll groupsCombine all symbols in orderrwxr--r--
💡 All permission bits checked and combined into final notation.
Variable Tracker
VariableStartAfter OwnerAfter GroupAfter OthersFinal
Permission Stringrwxrwxr--rwxr--r--rwxr--r--
Key Moments - 3 Insights
Why do some permission letters show '-' instead of 'r', 'w', or 'x'?
A '-' means that permission is NOT granted. For example, in row 5, group write permission is '-', meaning group cannot write.
How do the three groups relate to different users?
Owner permissions apply to the file owner, group permissions apply to users in the file's group, and others apply to everyone else. See steps 1-9 in the execution table.
Why is the permission string always 9 characters long?
Because it shows 3 permissions (r,w,x) for each of the 3 groups (owner, group, others). Each missing permission is shown as '-'.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the permission symbol for group execute at step 6?
A-
Bx
Cr
Dw
💡 Hint
Check row 6 in the execution_table where group execute permission is evaluated.
At which step does the permission string become 'rwxr--r--'?
AStep 3
BStep 10
CStep 9
DStep 6
💡 Hint
Look at the combine step where all symbols are joined into the final string.
If the owner did NOT have execute permission, how would the permission string change?
Arwxr--r--
Br--r--r--
Crw-r--r--
Drwxrwxrwx
💡 Hint
Check the owner execute permission at step 3 and see what happens if it is removed.
Concept Snapshot
Permission notation shows file access as rwxrwxrwx.
Three groups: owner, group, others.
Each group has read (r), write (w), execute (x).
Use '-' if permission is missing.
Example: rwxr--r-- means owner full, group read only, others read only.
Full Transcript
This visual execution shows how Linux file permissions are represented as rwxrwxrwx. Permissions are split into three groups: owner, group, and others. Each group has three possible permissions: read (r), write (w), and execute (x). If a permission is not granted, it is shown as a dash '-'. The example traces a file with permissions rwxr--r--, meaning the owner can read, write, and execute; the group can only read; and others can only read. The execution table shows each permission checked step-by-step and combined into the final string. Key moments clarify why dashes appear and how groups relate to users. The quiz tests understanding of permission symbols and their positions. This helps beginners see exactly how permission notation is built and read.