Linux Permissions Calculator

Visually generate Unix file permissions. Toggle the grid to calculate octal (e.g., 755) and symbolic (e.g., -rwxr-xr-x) notation instantly.

Octal Value
644
Symbolic Value
-rw-r--r--
Scope
Read (4)
Write (2)
Execute (1)
Owner
Group
Public

Common Presets

Did you know?

The chmod command stands for "change mode". The permission numbers are just sums!

  • Read (r) = 4
  • Write (w) = 2
  • Execute (x) = 1

Chmod & Chown Reference

CommandDescriptionExample
chmod +x fileMake file executablechmod +x script.sh
chmod u+w fileAdd write permission for ownerchmod u+w config.json
chmod -R 755 dirRecursively set permissions for directorychmod -R 755 /var/www/html
chown user:group fileChange file ownershipchown john:developers app.js
chown -R user:group dirRecursively change directory ownershipchown -R www-data:www-data /var/www
chmod g-w fileRemove write permission from groupchmod g-w secret.txt
chmod o-r fileRemove read permission from otherschmod o-r private.key

# Master Linux File Permissions

Understanding Linux file permissions is crucial for any developer or system administrator. The file permission system determines who can access files and directories on a Unix-like operating system. Permissions are defined for three types of users: Owner, Group, and Others.

Understanding the Numbers

The octal number notation (like 755 or 644) is calculated by adding up the values for each permission type:

  • Read (4): Allows opening and reading the file content.
  • Write (2): Allows modifying the file content.
  • Execute (1): Allows running the file as a program or script.