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 is a bash command?

811


Which command is used to copy files?

801


What are some command words?

795


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

960


How do I search for text in vi?

755






What is ‘ps’ command for?

832


What is difference between grep and find command in unix?

824


What is grep and how do you use it?

769


Write a command to kill the last background job?

781


Differentiate cat command from more command.

763


What is in grep command?

839


What is the behavioural difference between cmp and diff commands?

862


How to use grep command to list find the records of a file containing 10 different strings?

828


How do you grep recursively?

761


What are bash commands?

781