Can you write a command to erase all files in the current directory including all its sub-directories?



Can you write a command to erase all files in the current directory including all its sub-directorie..

Answer / yamini

rm -rf <directoryname>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

How to find and replace the below command?

2 Answers   HCL,


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,


What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...

27 Answers   CGI,






What do chgrp command do?

0 Answers  


What is the use of find command in unix?

0 Answers  


What is an Unix command to convert HEX value to ASCII value located in any flat file.

2 Answers  


Why is it called grep?

0 Answers  


hi i have directories within the directory. Now i want to copy the directory along with all directories included in it to one location by using copy command? what is the command

2 Answers   ACS, Span Systems,


What is awk used for?

0 Answers  


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


Categories