What Command will remove a Directory in UNIX?

Answer Posted / suryakanta

rm-rf directoryname
this will remove the directory forcefully from unix.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are awk commands?

582


What is the nmap command?

583


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:

1762


What command is used to check the current users?

594


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

567






Is ‘du’ a command? If so, what is its use?

639


Why is shebang used?

595


Write a command to kill the last background job?

618


What is ‘ps’ command for?

616


What command will change your prompt to myprompt?

704


How do I open a port?

596


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

822


Explain command to show the space allocation of files?

629


What is time_t?

586


What is the search command in unix?

603