Computer Science - Unix - Discussion

Discussion :: Unix - Section 2 (Q.No.24)


Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

[A]. rm *
[B]. rm -r *
[C]. rm all
[D]. rm *.*
[E]. None of the above

Answer: Option B


No answer description available for this question.

Supreet said: (Nov 4, 2015)  
rm: To remove file.

-r option is used for all directories and sub directories.

* means all entries.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.