Which of the following command will remove the file named * ?

Trường Phan

New member
Which of the following command will remove the file named * ?
A. rm *
B. rm ‘*’
C. rm \*
D. rm ‘*’ and rm \*
 
Answer: d
Explanation: To suppress the nature of wildcard * we can use either escaping or quoting. The \ symbol will suppress the feature of wildcard and will remove the file named *. Similarly using quoting we can turn off the meaning of the meta character.
 

Tìm kiếm

Back
Top