Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
3
Newest
 Editor
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Oct
17
awarded  Editor
Oct
17
revised How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”
added 98 characters in body
Oct
17
comment How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”
From your reply below, I would say there is no such file.
Oct
17
comment How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”
I'm guessing that there is no such file or directory, and perhaps the file name also contains some invisible character(s). (and you could get about the same error message in perl with 'unlink "-" or die "Err: $!"'). Try "ls -b" to see what the real filename is.
Oct
17
awarded  Supporter
Oct
17
awarded  Teacher
Oct
17
answered How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”