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

Who wrote grep?

1018


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

1025


Enlist some filename manipulation commands in unix.

1100


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

2214


What does the metacharacter mean?

1097


What is nr in awk command?

1144


What does grep v grep do?

1037


Which unix command to make a new directory?

1074


How does the system know where one command ends and another begins?

2186


How do I use grep to find a file?

1073


What's a command word?

1120


What does the “echo” command do?

1105


What are the differences among a system call, a library function, and a unix command?

1158


How can we use grep command in unix?

1152


What is rmdir command?

1051