If you happen to come across an error message such as the following, chances are that your filesystem has become corrupted somehow and all it really needs is some good ‘ol T.L.C. with
rm: cannot lstat `filename': Permission denied rm: cannot remove `filename': Stale NFS file handle
The other time I’ve seen similar messages has been when I try to delete a file that I had forgotten was open in the background. After running
jobs, I can double check that the file isn’t in use.
One last trick is to make sure that the directory that you’re working under actually still exists. Try to
cd to it again using an absolute path.