Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to give execute permission to the user on file.txt.
Linux CLI
chmod u[1] file.txt Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-x' removes execute permission instead of adding it.
Using '+w' adds write permission, not execute.
✗ Incorrect
The '+x' adds execute permission for the user (u) on the file.
2fill in blank
mediumComplete the command to remove write permission from group on script.sh.
Linux CLI
chmod g[1] script.sh Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+w' adds write permission instead of removing it.
Using '-r' removes read permission, not write.
✗ Incorrect
The '-w' removes write permission from the group (g) on the file.
3fill in blank
hardFix the error in the command to add read permission for others on data.csv.
Linux CLI
chmod o[1] data.csv Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Writing 'r+' instead of '+r' causes syntax error.
Using '-r' removes read permission instead of adding it.
✗ Incorrect
The correct syntax is '+r' to add read permission; 'r+' is invalid.
4fill in blank
hardFill both blanks to set read and write permissions for user and remove execute permission for group on file.txt.
Linux CLI
chmod u[1],g[2] file.txt
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+x' instead of '-x' removes execute permission incorrectly.
Using '-rw' for user removes permissions instead of adding.
✗ Incorrect
Adding '+rw' to user gives read and write permissions; removing '-x' from group removes execute permission.
5fill in blank
hardFill all three blanks to add execute permission for user, remove write permission for group, and add read permission for others on app.sh.
Linux CLI
chmod u[1],g[2],o[3] app.sh
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing '+' and '-' signs incorrectly.
Using '-x' instead of '+x' for user permission.
✗ Incorrect
The command adds execute permission for user (+x), removes write permission for group (-w), and adds read permission for others (+r).