I am running Linux Mint.I tried to copy a file with the file manager. It looked like it hung.
I can see the file in the directory with ls -l:
-rwxr-xr-x 1 mike domain^users 20 Mar 1 08:57 'output (copy 1).txt'
It has char quotes around it. However, I cannot move it, remove it, cat, etc.
For any of these commands, I get a similar error message. For rm *, I get:
rm: cannot remove 'output (copy 1).dat':No such file or directory.
I moved every other file out of the directory except this one and tried rm * and rm -f *. Same error.
I tried
$ rm "'output (copy 1).dat'"
rm: cannot remove ''\''output (copy 1).dat'\''': No such file or directory
I tried
$ mv * test
mv: cannot move 'output (copy 1).txt' to 'test': No such file or directory.
I can't rmdir, it says the directory is not empty.
Ideas?
output (copy1).dat? – jesse_b Mar 01 '19 at 14:46for f in *; do echo "$f"; donewhen run in that directory? – jesse_b Mar 01 '19 at 14:57/etc/groupyou might have a faulty filesystem. have you triedfsck(File System Consistency Check) it ? – Archemar Mar 01 '19 at 14:57ls. Now it would help if you edit your question to include all of the commands you have tried so far and the error messages that each gave. – jesse_b Mar 01 '19 at 15:03output (copy 1).datin comments, but in the question you haveoutput (copy1).dat. This is different. Try removing the directory that holds this file (assuming you'd want to remove everything in this directory) withrm -rf dirname, wheredirnameis the name of the directory. – Kusalananda Mar 01 '19 at 15:14rmusually does not contain the wordrmdir. – Kusalananda Mar 01 '19 at 15:23