Can’t Delete Files: Help Needed!

0
0
Asked By CasualCoder123 On

I'm dealing with a couple of stubborn files that just won't budge. They're preventing me from using an old file tree, and I've run into some frustrating issues when trying to remove them. Using the command `ls -1b`, I see error messages like 'Noah J. Goldstein & Steve J. Martin & Robert B.': No such file or directory. I've also tried `rm -- *` and `sudo rm -- *`, but I still get messages saying these files can't be removed because they don't exist. Any suggestions for dealing with this problem? These files were added over SMB years ago, if that helps.

2 Answers

Answered By TechWhiz95 On

Have you tried running `ls -l Noah*` in the directory where these files are located? It might give you more detailed info about what’s going on with these files.

Answered By FileNinja88 On

It sounds like a classic case of ghost files. If you keep getting the error that they don’t exist but they are showing up in the directory, you might want to try a search command, like `sudo find / -name '*Goldstein*' -print0 | xargs -0 rm -rf` just to be thorough!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.