Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Linux File Permissions Demystified: A Visual Guide to rwx

programApp 1 min read

Linux file permissions can be confusing, but they don't have to be. This quick guide breaks down the rwx system—read, write, execute—for users, groups, and others in simple, visual terms.

What Does rwx Mean?

  • r (read): View file contents or list directory.
  • w (write): Modify file or add/remove files in directory.
  • x (execute): Run a program or enter a directory.

Permissions are grouped into three sets:

  1. User (owner) – the file's owner.
  2. Group – users in the file's group.
  3. Others – everyone else.

How to View Permissions

Use ls -l in the terminal. You'll see something like: -rwxr-xr--. The first character is the file type (- for file, d for directory), followed by three triples of rwx.

Changing Permissions with chmod

  • Symbolic mode: chmod u+x file.sh adds execute for the user.
  • Numeric mode: chmod 755 file.sh sets rwx for owner, r-x for group/others.

Pro Tips

  • Directories need execute to be accessible.
  • Use chmod -R with caution on directories.
  • Always follow the principle of least privilege.

Master these basics to secure your Linux system and boost your command-line skills!

React