1.

Which command is used for removing an empty directory?(a) mkdir(b) rmdir(c) del(d) removeThe question was asked during an online interview.This key question is from File Handling Commands: pwd, cd in division The File System of Unix

Answer»

The correct answer is (b) RMDIR

The explanation is: rmdir command is used for removing directories provided the DIRECTORY should be empty. For example, to remove a directory named dir_001 in the current directory TYPE the following command on the TERMINAL.



Discussion

No Comment Found

Related InterviewSolutions