Which option is used with touch command which forces the command not to create file, if it does not exists.

Ngô Quốc Huy

New member
Which option is used with touch command which forces the command not to create file, if it does not exists.
A. -h
B. -c
C. -t
D. -f
 
Answer: b
Explanation: In case if there is a strict requirement that touch command should not create a new file, we can use the -c option with it. Else if the file already exists then it will do nothing.
Code:
$ touch -c newfile001
 

Tìm kiếm

Back
Top