How to delete a directory containing files and folders?

Answers were Sorted based on User's Feedback



How to delete a directory containing files and folders?..

Answer / wizard_cmp@yahoo.co.in

rm -r <dir_name>

Is This Answer Correct ?    9 Yes 1 No

How to delete a directory containing files and folders?..

Answer / subbareddy kake

rm <file name>: For deleting the file

rm -i:It will ask conformation

rmdir:For removing the directory

rm -r:It remove recursively all files and directory itself

rm -rf: for deleting the all files and subdirectories in
current directory

Is This Answer Correct ?    7 Yes 0 No

How to delete a directory containing files and folders?..

Answer / 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

More Unix Commands Interview Questions

How to display no of records in oracle using unix command?

0 Answers  


what is the shell for dos,nt operating systems?

1 Answers  


How can you see the command line history?

0 Answers  


Using unix command how to display no of records in oracle?

0 Answers  


What do know about tee command?

0 Answers  


What is $0 bash?

0 Answers  


What is the syntax of grep command and what is its use?

6 Answers  


what is the functionality of kernel in unix architecture?

13 Answers   HCL,


What does awk stand for?

0 Answers  


Differentiate cat command from more command.

0 Answers  


What Command is used to make a directory?

4 Answers   IBM,


how to check a file system type

7 Answers   Wipro,


Categories