1

I would like to remove the .xlsx file below in terminal folder. When I right click and do delete, it gives error: no such file. When I do 'ls' in command line it is not listed either. I refresh the terminal folder, it is still in there. why?

enter image description here

0

The question marks might be representative of characters that your file manager is unable to display. If that is the only .xlsx file in the directory, try running the command rm *.xlsx in the terminal, from within the directory with the file in it.

| improve this answer | |
  • 1
    This indicates a quite serious bug in whatever filemanager the user is using. One that could potentially cause loss of data when deleting oddly named files. – Kusalananda Feb 13 '19 at 22:52
  • Yes, it's indistinguishable from a valid filename which contains that sequence of ?s. It would be much better to use the Unicode standard replacement character: � – J. Taylor Feb 13 '19 at 22:55
  • It looks as if the filenamanager is actually using literal ? to delete the file, as if it was using the output of ls. – Kusalananda Feb 13 '19 at 23:06
  • Consider rm -i... if you're not sure what will match. – Jeff Schaller Feb 14 '19 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.