Linux CLI - File Permissions and OwnershipYou want to allow a user to read and execute a script but not modify it. Which permission set should you assign?Ar-xBrw-CrwxDr--Check Answer
Step-by-Step SolutionSolution:Step 1: Identify needed permissionsRead (r) and execute (x) are needed; write (w) must be excluded.Step 2: Match permission sets'r-x' means read and execute allowed, write denied.Final Answer:r-x -> Option AQuick Check:Read + execute, no write = r-x [OK]Quick Trick: Use r-x to allow read and execute only [OK]Common Mistakes:MISTAKESChoosing rw- which allows writePicking rwx which allows allSelecting r-- which disallows execute
Master "File Permissions and Ownership" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes File Permissions and Ownership - Permission notation (rwxrwxrwx) - Quiz 2easy File Permissions and Ownership - chown (change ownership) - Quiz 1easy File Permissions and Ownership - chmod (change permissions) - Quiz 5medium File and Directory Operations - mkdir (create directories) - Quiz 12easy Linux Basics and Terminal - Opening and using the terminal - Quiz 11easy Linux Basics and Terminal - Opening and using the terminal - Quiz 10hard Linux Basics and Terminal - Shell concept (Bash, Zsh) - Quiz 5medium Navigating the File System - Why file system navigation is the first skill - Quiz 11easy Users and Groups - sudo for elevated privileges - Quiz 10hard Users and Groups - useradd and userdel - Quiz 2easy