adplus-dvertising
frame-decoration

Question

Which one of the following command can delete a directory which is not empty?

a.

rm -r

b.

rmdir

c.

rm *

d.

del *

Posted under UNIX

Answer: (a).rm -r

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one of the following command can delete a directory which is not empty?

Similar Questions

Discover Related MCQs

Q. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.

Q. Which command is used for removing file named -file.txt?

Q. Which command is used for renaming files?

Q. If the destination file does not exists, then mv command creates it.

Q. What is the exit status of cmp command if both the files are identical?

Q. Which option is used with cmp command to display a detailed list of mismatches?

Q. Which option is used with cmp command to limit the number of bytes to be compared?

Q. How can we skip some initial bytes from both the files to be compared?

Q. –b option is used with cmp command to print the differing bytes in both files.

Q. Which command compares two sorted files line by line?

Q. What will be the command if we want to suppress column 1 and column 2 in the output of comm Command?

Q. For comm command to work properly, files specified should be sorted.

Q. Which command is used to display the differences between files?

Q. When two files are identical, what is the output of diff command?

Q. Which option is used to produce multi columnar output in diff command?

Q. If we are interested in knowing that whether the two files are identical or not, we can use ___ command.

Q. wc command cannot take multiple filenames as arguments.

Q. Which option is used for counting the number of lines in a file only ?

Q. Which option is used for counting the number of words in a file only?

Q. Which option is used for counting the number of characters in a file only.