Question: This is a question for Linux: Write-protect for everyone hidden files and directories in /tmp with names beginning with 5, 6, 7, or 8 and
This is a question for Linux:
Write-protect for everyone hidden files and directories in /tmp with names beginning with 5, 6, 7, or 8 and ending with a capital letter (A-Z).
You must do this using shell expansion characters. You do not know your present working directory. (You will be using a single command to answer this question).
Hints:
Take away the write permission for everyone using the symbolic (not octal) notation.
You need to use 2 character classes. One at the beginning of a file name for digits and one at the end for letters.
The middle of the file name can be anything.
Do not forget to include /tmp/ in front of the wildcard expression.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
