Chmod Symbolic Notation Guide
Understand chmod symbolic notation (rwx) with interactive conversion. This tool processes everything client-side — no commands are executed on any server.
Chmod Calculator
Calculate Unix file permissions. Toggle checkboxes or enter an octal code — results update instantly.
| Role | Read | Write | Execute | Value |
|---|---|---|---|---|
| Owner | 6 | |||
| Group | 4 | |||
| Others | 4 |
Common Presets
About Unix File Permissions
- Each digit represents permissions for owner, group, and others.
- Read (
4) + Write (2) + Execute (1) = octal digit. - Example:
755= owner rwx, group rx, others rx. - Everything runs in your browser — no data is sent over the network.
What is chmod symbolic notation?
Chmod symbolic notation uses letters to represent permissions: r (read), w (write), and x (execute). Permissions are grouped into three categories: u (user/owner), g (group), and o (others). Symbolic commands like u+x (add execute for owner) or go-w (remove write for group and others) are often easier to read than their octal equivalents.
# Chmod symbolic notation
chmod u+rwx file # owner: read + write + execute
chmod g+rx file # group: read + execute
chmod o-w file # others: remove write
chmod a+r file # all: add read
chmod u=rw,g=r,o= file # owner: rw, group: r, others: none
# Common examples
chmod u+x script.sh # make script executable
chmod go-rwx secret.key # owner only access
chmod a+r public.html # world-readableCommon use cases
System administrators use symbolic chmod to make scripts executable (chmod u+x script.sh), restrict sensitive config files (chmod go-rwx .env), or set group-writable directories for shared projects (chmod g+w /var/www). Symbolic notation is preferred in documentation and automation because it clearly communicates intent without requiring mental octal math.
Frequently Asked Questions
What does chmod u+x mean?
chmod u+x adds execute permission for the file owner (u = user). After running this, the owner can execute the file as a program or script while other permissions remain unchanged.
What is the difference between symbolic and octal chmod?
Symbolic notation uses letters (u+rwx, g-w, o=r) to add, remove, or set specific permissions. Octal notation uses numbers (755, 644) to set all permissions at once. Symbolic is better for incremental changes; octal is better for setting exact states.
Related Inspect Tools
Kubernetes YAML Validator
Validate Kubernetes manifests for syntax, required fields, best practices, security, and resource limits
OpenAPI / Swagger Validator
Validate OpenAPI 3.x and Swagger 2.0 specs for structure, paths, schemas, security, and best practices
.env File Validator
Validate .env files for syntax errors, duplicate keys, security risks, and best practices — export .env.example templates
File Hash Calculator
Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512 file hashes — drag and drop to verify integrity with checksum comparison