% rmdir files
The rmdir command often confuses new users. It
will only remove a directory if it is completely
empty; otherwise, you'll get an error message:
% rmdir files
rmdir: files: Directory not empty
% ls files
%
As in the example, ls will often show that the
directory is empty. What's going on?