Complete the code to check if a file is readable by the user.
if [ -[1] file.txt ]; then echo "Readable"; fi
The -r flag checks if the file is readable.
Complete the command to add write permission for the user on a file.
chmod u[1] file.txtThe +w adds write permission for the user.
Fix the error in the command to execute a script named 'run.sh'.
./[1]The script file must be named exactly with its extension to execute it.
Fill both blanks to create a command that removes execute permission for group and others.
chmod [1][2] file.txt
go- targets group and others, x is execute permission to remove.
Fill all three blanks to create a command that adds read and write permissions for user and execute for others.
chmod u[1],o[2] file.txt # Add [3] permission for others
u+rw adds read and write for user, o+x adds execute for others, which is the execute permission.
