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 do you remove a crontab file?

6 Answers  


Explain ‘library functions’ with respect to unix commands?

0 Answers  


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

0 Answers  


What is command substitution?

0 Answers  


when we installing aix os the ssh installed default?

2 Answers  






What is unix command line?

0 Answers  


How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks

6 Answers   Polaris, Tech Mahindra,


How to display a file name which has zero bytes in size.

11 Answers   Polaris,


What do chown command do?

0 Answers  


What is the use of awk command in unix?

0 Answers  


Where can I get the free download of Unix by Yeswant Kanetkar?

5 Answers  


What is the unix command to confirm a remote host is alive or not?

0 Answers  


Categories