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...

What Command will remove a Directory in UNIX?

Answer Posted / sambasivarao

This has two options

1) If directory is an empty directory
$rmdir <directory name>

2) If it is non-empty directory
$rm -rf <directory name>

-r means delete recursively
-f means delete forcibly.

It deletes your mentioned directory without informing
you that it is going to delete the whole directory (sub
directories and files in that directory)

J. Sambasivarao
91+ 9948280248

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1110


What difference between cmp and diff commands?

1240


What does 'mkdir' command do in UNIX?

1237


What is the difference between grep and grep?

1059


Describe the zip/unzip command using gzip.

1096


How do I use nslookup?

1034


What is the command to find hidden files in the current directory?

1137


Does cp command overwrite files?

1130


What do know about tee command?

1100


What is rmdir command?

1038


Which command is used to restrict incoming messages?

1042


What does touch command do in unix?

1339


What is grep in bash?

1004


What is the command to compare two files in unix?

1052


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1334