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?
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.
-
1This 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 ofls
. – Kusalananda♦ Feb 13 '19 at 23:06 -