adplus-dvertising
frame-decoration

Question

Which command would be most suitable to remove the following files?
dirx diry dirz dirzw

a.

rm dir?

b.

rm dirx diry dirz dirzw

c.

rm *

d.

rm dir*

Posted under Unix Shell UNIX

Answer: (a).rm dir?

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which command would be most suitable to remove the following files? dirx diry dirz dirzw

Similar Questions

Discover Related MCQs

Q. Which of the following files will not be deleted using “rm chap??” ?

Q. Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.) ?

Q. * and ? cannot match ____

Q. rm chap0[1234] will delete all of the following files.

chap01 chap02 chap03 chap04

Q. Which of the following files will not be listed using the following command?

ls chap0[1-4]

Q. Which of the following symbol is used for negating the character class?

Q. Which of the following shell doesn’t support ! symbol for negating the character class?

Q. The command cd * will work.

Q. Providing a backslash (\) before the wild card to remove its special meaning is called _____

Q. Enclosing the wild card or the entire pattern within quotes is called ___

Q. Redirection is a process of switching of the standard stream of data.

Q. How many files are used for representing different streams?

Q. Which stream is connected to the display?

Q. Which stream is used for representing error messages?

Q. The command wc < sample.txt will count data from the file sample.txt.

Q. Which symbol is used for taking input from both file and standard input?

Q. Which of the following symbol(s) can be used to redirect the output to a file or another program?

Q. The >> symbol is used to overwrite the existing file if it exists.

Q. Which file descriptor is used to represent standard error stream?

Q. We can redirect the error message to file named newfile using __________ command.