One of my users created a file named -filename. I can't rm or mv it since the commands bark about the bad - parameters I am passing to it. Is there another technique for trashing these kinds of misnamed files ??
And I always have luck with rm "-filename". You could also probably do a rm *filename* -- but do an ls first to make sure there isn't a file you want to keep that might have "filename" as part of its name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.