[Next] [Previous] [Up] [Top] [Contents]

3.6 Directory Navigation and Control

3.6.4 rmdir - remove directory

A directory needs to be empty before you can remove it. If it's not, you need to remove the files first. Also, you can't remove a directory if it is your present working directory; you must first change out of it.


rmdir directory


To remove the empty directory /home/frank/data while in /home/frank use:

% rmdir data


% rmdir /home/frank/data

Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]