
File Permission Commands in Linux
Quiz by Talent
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
20 questions
Show answers
- Q1Which command is used to change file permissions in Linux?cpchownchmodls30s
- Q2What does the 'r' in file permissions represent in Linux?Read permissionRun permissionRename permissionWrite permission30s
- Q3Which numeric mode in 'chmod' gives read, write, and execute permissions for the owner and no permissions for group and others?75570077764430s
- Q4What command would you use to view the current permissions of a file in Linux?ls -lchowncpchmod30s
- Q5What does the 'x' in file permissions represent in Linux?Execute permissionRead permissionWrite permissionDelete permission30s
- Q6Which of the following commands would you use to grant execute permissions to all users for a script file named 'script.sh'?chmod o+r script.shchmod a+x script.shchmod u+x script.shchown all+x script.sh30s
- Q7What is the effect of the command 'chmod 644 myfile.txt' in Linux?It gives read, write, and execute permissions to everyone.It removes all permissions for everyone.It sets read and write permissions for the owner, and read-only permissions for group and others.It sets execute permission for the owner only.30s
- Q8What does the command 'chmod g-w myfile.txt' do?It grants execute permission to everyone on 'myfile.txt'.It removes write permission for the group on 'myfile.txt'.It adds write permission for the group on 'myfile.txt'.It removes read permission for the group on 'myfile.txt'.30s
- Q9What is the default permission setting for newly created files in Linux?666 (rw-rw-rw-)644 (rw-r--r--)755 (rwxr-xr-x)777 (rwxrwxrwx)30s
- Q10What will the command 'chmod 400 secret.txt' do?It allows only the owner to read the file, and no one else can access it.It only allows the owner to write to the file.It makes the file executable for everyone.It gives read and write permissions to everyone.30s
- Q11Which command is used to change the permissions of a file in Linux?lsmkdirchmodchown30s
- Q12What does the command 'chmod 755 file.txt' do?Changes the file owner to a specified userDeletes the fileSets the owner to read, write, execute and the group and others to read and executeMakes the file writable by everyone30s
- Q13What does the permission string 'rwxr-xr--' represent?Only the owner has read permissionEveryone has full permissionsThe file is unreadable by anyoneOwner has full permissions, group has read and execute, others have read30s
- Q14Which command allows you to view the current permissions of a file in Linux?chmodchownls -lpwd30s
- Q15What is the effect of the command 'chmod 644 myfile.txt'?Owner can read, group can write, others have no accessEveryone can read, write, and executeOwner can read and write; group and others can read onlyOwner can read, write, and execute; group and others can read30s