↑↓ move Enter open Esc close

chmod 644 in Linux: What It Means and When to Use It

Learn what chmod 644 means and why it is common for ordinary files.

644 is a common mode for non-executable files: rw- for the owner and r-- for group and others.

Step by step

1 Set 644

$ chmod 644 config.txt

Sets the mode to rw-r--r--.

2 Verify

$ ls -l config.txt

Check the symbolic permissions.

3 Protect a secret

$ chmod 600 .env

600 gives the owner read/write and nobody else access.

Tips worth knowing

Frequently asked questions

What does chmod 644 mean?

Owner has read/write; group and others have read.

What is the difference between 644 and 755?

644 is rw-r--r--; 755 is rwxr-xr-x.

If it goes wrong

The commands behind it

Concepts involved: File permissions

More how-to guides