Technical data
Introducing the File System
6-14
Removing Files and Directories
The rm command deletes one or more entries from a directory.
The rmdir command deletes an empty directory.
Figure 6-5 demonstrates how to remove all entries in a directory and the direc-
tory itself.
If you try to delete a file or directory and get the message “Permission denied,”
you do not have the proper file access permission to delete the file or directory.
Try to change the file permissions; refer to chmod(1) in HP-UX Reference Vol. 1.
If you cannot change the permissions yourself, contact your system administra-
tor.
Refer to rm(1) in HP-UX Reference Vol. 1 for a complete list of the options as-
sociated with rm and rmdir.










