ls -l Permissions Decoder
Read the octal mode from one permission string or a whole directory listing. Results use the original line numbers and omit filenames.
Use up to 100 lines and 20,000 characters. Blank lines and English total headers are skipped. The decoder runs in this tab.
Decoded permissions
Line 2 · Regular file
-rw-r--r--0644- Owner
- rw-
- Group
- r--
- Others
- r--
Line 3 · Directory
drwxrwsr-x+2775- Owner
- rwx
- Group
- rws
- Others
- r-x
Set-group-ID
An alternate access method is present, such as an ACL.
How to read the permission string
When present, the first character identifies the file type. The next nine characters describe the owner, group and other users in that order. Read, write and execute count as 4, 2 and 1. For directories, execute means search or traversal.
The leading octal digit records the special bits. Lowercase s or t includes execute in that position. Uppercase S or T sets the special bit with execute off.
Markers such as +, . and @ sit outside the mode bits. Effective access can also depend on ACLs, security context, and the permissions on parent directories. To preview a change to an existing mode, use the symbolic chmod calculator.