Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2015 Dec – III | Question 57

View Discussion
Improve Article
Save Article
  • Last Updated : 12 Jun, 2018
View Discussion
Improve Article
Save Article

What will be the output of the following Unix command ?
$rm chap0\[1 – 3\]

(A) Remove file chap0[1 – 3]
(B) Remove file chap01, chap02, chap03
(C) Remove file chap\[1 – 3\]
(D) None of the above

Answer: (A)

Explanation: $rm chap0\[1 – 3\]
Square bracket surround a choice for single character and hyphen(-) will separate the range of single character.
Above command will remove chap 01 or chap 02 or chap 03 file.
So, option (A) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!