What Command will remove a Directory in UNIX?

Answer Posted / ziauddin

rmdir directoryname

note the directory must be empty

Is This Answer Correct ?    27 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command is used to switching between users in unix?

547


What is sed awk grep?

588


What is the size of time_t?

613


What is the command to view process running?

550


What is difference between grep and find command in unix?

553






Which command is used to find whether the system is 32 bit or 64 bit?

603


What is updatedb?

559


Which command is used to copy files?

532


Which command is used to create a directory?

544


What does sed command do in unix?

541


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:

1737


How does shebang work?

574


What does the “echo” command do?

600


What is the pipe command?

558


What is the difference between cat and more command?

606