3.21. Deleting a Directory: rmdirAlthough posterity is a good reason for keeping old things around, it can interfere with your disk usage in a multi-user system. I therefore decided to remove the "lyrics.draft" directory to avoid exceeding my modest disk quota. Before I removed it, I archived its contents using the cpio utility, which is described in Chapter 4, "GNU Utilities for Power Users" To remove the directory, I used the rmdir utility (Figure 3-24).
I tried to remove the "lyrics.draft" directory while it still contained the draft versions, and received the following error message: $ rmdir lyrics.draft rmdir: lyrics.draft: Directory not empty $ _ To remove the files from the "lyrics.draft" directory, I made use of the rm utility, described next. |