What will be the output of the following Unix command? $rm chap0\[1 – 3\]
What will be the output of the following Unix command?
$rm chap0\[1 – 3\]
Show answerHide answer
Correct answer: (A) Remove file chap0[1 – 3]
Explanation
rm chap* would remove all files beginning with chap. To remove a file whose name contains a special character, escape it with the backslash (\); this is called escaping or despecializing. So rm chap0\[1 – 3\] removes the file named chap0[1 – 3] itself.