Register now or log in to join your professional community.
Which of the following commands can be used to assure that a file 'myfile' exists? A. cp myfile /dev/null B. touch myfile C. create myfile D. mkfile myfile
A is correct and B is incorrect. Because touch command creates the file if it doesn't exist. But we want just check the file existance, not create a new one.
Hello Mohammed,
B.touch myfile->assure a 'myfile' exists