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

Answer Posted / hr@tgksolutions.com

Directories can be removed using the rmdir command for empty directories. For instance, rmdir directory_name will remove the named directory, provided it's empty. However, if you need to remove a directory and its contents, the rm command with the -r (recursive) option, like rm -r directory_name, becomes useful. Caution is advised, as this operation is irreversible and can quickly delete large amounts of data.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sed command do in unix?

1131


Enlist some filename manipulation commands in unix.

1098


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1167


How does shebang work?

1025


What is the use of awk command in unix?

1079


What is the difference between grep and grep?

1071


What is the use of tee command?

1090


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1158


Which command is used to kill the last background job?

1299


What does awk stand for?

1041


Describe the usage and functionality of the command rm –r * in unix?

1991


What is ‘ps’ command for?

1146


Which command is used to restrict incoming messages?

1050


How do I run a bash script?

1128


What is the use of find command in unix?

1092