Skip to content

Linux File Permissions And Chmod Patterns

Master Linux File Permissions And Chmod Patterns with 66 free flashcards. Study using spaced repetition and focus mode for effective learning in Devops.

🎓 66 cards ⏱️ ~33 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What does <code>rwxr-xr--</code> mean?

Show ▼

Owner: rwx (7).
Group: r-x (5).
Other: r-- (4).
Octal: 754.

Convert <b>644</b> to symbolic.

Show ▼

rw-r--r-- — owner read+write, group read, others read.

Convert <b>755</b> to symbolic.

Show ▼

rwxr-xr-x — typical for executables and directories.

Convert <b>600</b> to symbolic.

Show ▼

rw------- — typical for private files like ~/.ssh/id_ed25519.

Convert <b>700</b> to symbolic.

Show ▼

rwx------ — typical for ~/.ssh directory.

Why must <code>~/.ssh</code> be 700?

Show ▼

SSH refuses to use a key in a directory or with permissions that are group/world accessible — security check.

What does <code>chmod u+x file</code> do?

Show ▼

Adds the execute bit for the file's owner only.

Difference between <code>chmod g+s dir</code> and <code>chmod o+t dir</code>?

Show ▼

setgid on directory: new files inherit group of dir.
sticky bit: only owner can delete files in dir (like /tmp).

Setuid bit example?

Show ▼

chmod u+s /usr/bin/passwd — runs as file owner (root) regardless of caller. Use with care.

Numeric chmod for setuid+rwx for owner, rx for group/other?

Show ▼

4755.

How to recursively set 755 on dirs and 644 on files?

Show ▼

find . -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \;

Change owner and group?

Show ▼

chown user:group path; add -R for recursive.

🎓 Start studying Linux File Permissions And Chmod Patterns

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

📖 Learning Resources