Linux CLI - File Permissions and OwnershipIf a file has permissions '-rw-r-----', who can read the file?AOnly the ownerBOnly others (not owner or group)CEveryoneDOwner and group membersCheck Answer
Step-by-Step SolutionSolution:Step 1: Decode the permission string'-rw-r-----' means owner has read/write, group has read, others have no permissions.Step 2: Identify who can readOwner and group members can read; others cannot.Final Answer:Owner and group members -> Option DQuick Check:Read permission for owner and group = D [OK]Quick Trick: r in owner and group means both can read [OK]Common Mistakes:Ignoring group read permissionAssuming others can readConfusing write with read permission
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 - Special permissions (setuid, setgid, sticky bit) - Quiz 9hard File Permissions and Ownership - Permission notation (rwxrwxrwx) - Quiz 8hard File and Directory Operations - cp (copy files and directories) - Quiz 15hard File and Directory Operations - mkdir (create directories) - Quiz 7medium File and Directory Operations - cp (copy files and directories) - Quiz 11easy File and Directory Operations - File globbing (wildcards *, ?, []) - Quiz 6medium File and Directory Operations - touch (create empty files) - Quiz 8hard Users and Groups - /etc/passwd and /etc/shadow - Quiz 3easy Users and Groups - whoami and id commands - Quiz 11easy Viewing and Editing Files - Why reading files is constant - Quiz 14medium