How to delete a directory containing files and folders?

Answer Posted / padmanaban

"find -type d -iname 'directoryname' | xargs rm -rf" this is
also a way to remove the folder and files.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does grep v grep do?

546


Differentiate cat command from more command.

574


Explain command to show the space allocation of files?

627


What are the dos commands?

642


What is the use of finger command?

595






Are you in or at the office?

609


How do I use grep to search for a file?

578


What is the use of the command 'ls -x chapter[1-5]' ?

659


What is the use of sed command in unix?

590


Name the unix command to find how many days the server has been up.

598


What are filter commands in unix?

549


What is “chmod” command?

562


hw will u use awk in replacing cahrs and files

2726


How does shebang work?

584


What are grep patterns?

573