I have in a folder several empty directories named '-e' or '-v' and so on.. I don't know how those directories were made. This makes the command ls -ltrd *
do not work. How can I remove those directories? I tried \rm -r -e
and \rm -r '\-e'
, or \rm -r "-e"
,.. what else? They all didn't work and the shell interprets -e
as an option.
Asked
Active
Viewed 16 times
0

Chan Kim
- 397
rm -r -- '-e'
should work – Patrick Bucher Aug 04 '21 at 07:58