rmdir [OPTION]... DIRECTORY...
Remove the DIRECTORY(ies), if they are empty.
linux3[80]% ls myDir myOtherDir sample.dat sample.txt linux3[81]% rmdir myDir/ linux3[82]% mkdir myDir linux3[83]% ls myDir myOtherDir sample.dat sample.txt linux3[84]% rmdir myDir linux3[85]% rmdir myOtherDir rmdir: `myOtherDir': Directory not empty linux3[86]% ls myOtherDir test.txt linux3[87]% rm myOtherDir/test.txt rm: remove `myOtherDir/test.txt'? y linux3[88]% rmdir myOtherDir linux3[89]% |