File permissions

Explain read and write bits in octal form.

Explorer

Lesson goal

Explain read and write bits in octal form.

How it works

The three digits describe the owner, group, and others. Read is 4, write 2, and execute 1. Add the desired bits.

touch report.txt
chmod 640 report.txt
ls -l

Try it

Inspect the file entry after chmod. The demo lists the octal mode.

Check your understanding

What can the group do with mode 640?

Next dayAll lessons
Search Linux DNA

DNA / GUIDANCE

Tux

Hi! Choose your goal and I’ll guide you to the right section.

Local guidance, no external AI or data collection.