โก Quick help for everyday permission tasks.
๐ Need a deep dive? โ Linux File Permissions โ Full Guide
ls -la /mnt/c/Users/akash/Desktop
This shows: permissions ยท links ยท owner ยท group ยท size ยท date ยท name
rwxr-xr-x
โโโ โโโ โโโ
โโโ โโโ โโโ Others: read + execute
โโโ โโโโโโ Group: read + execute
โโโโโโโโโ Owner: read + write + execute
| Symbol | Meaning | Value |
|---|---|---|
r |
Read | 4 |
w |
Write | 2 |
x |
Execute | 1 |
- |
None | 0 |
| Numeric | Symbolic | Use Case |
|---|---|---|
777 |
rwxrwxrwx |
Full access for everyone (โ ๏ธ use carefully) |
755 |
rwxr-xr-x |
Executable files & directories |
644 |
rw-r--r-- |
Text/config files |
600 |
rw------- |
Private files (SSH keys, etc.) |
500 |
r-x------ |
Read+execute for owner only |
000 |
--------- |
No access at all |
# Full permissions for everyone
chmod 777 filename
# Standard directory permissions
chmod 755 /mnt/c/Users/akash/Desktop/*
# Standard file permissions
chmod 644 /mnt/c/Users/akash/Desktop/*
# Recursive โ all directories to 755
find /path -type d -exec chmod 755 {} \;
# Recursive โ all files to 644
find /path -type f -exec chmod 644 {} \;
# Change owner
sudo chown username filename
# Change owner + group
sudo chown username:groupname filename
# Recursive
sudo chown -R username:groupname /path/to/dir
๐ Want to learn more? Check the full detailed guide:
Linux File Permissions โ Complete Reference
| โ Back to All Commands | | โ |