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

5.9 Miscellaneous useful commands

5.9.2 Removing files

To remove a file you will normally use the remove command, rm, which removes (unlinks) files. Occasionally you may find that rm won't remove a file or directory. This most often happens when a hard link is made to a directory. If you can't find the link you can still remove the directory with the unlink command. You should then unmount the file system, fsck it, and remount it. fsck will update the link count changed by unlink.


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]