Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

what is the command to find out the difference between files and folders?

6 Answers  


What does grep v grep do?

0 Answers  


Which unix command lists files/folders in alphabetical order?

2 Answers  


how to change a normal file into hidden file

3 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


What UNIX command will control the default file permissions when files are created?

4 Answers  


What command will change your prompt to myprompt?

0 Answers  


How do you move a process which is running background to foreground?

9 Answers  


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

6 Answers  


What is rmdir command?

0 Answers  


Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?

5 Answers  


How does a user get the current date, time in UNIX?

6 Answers   IBM,


Categories