Results 1 to 3 of 3
Hello, For some reason a file was created under my login called #Hello.World# (the hash symbol is part of the file name). I can't delete it, not even under root. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-01-2013 #1
- Join Date
- Oct 2007
The #Hello.World# file
Hello, For some reason a file was created under my login called #Hello.World# (the hash symbol is part of the file name). I can't delete it, not even under root. I tried to open it using vim but it looks like an empty file. Does anyone know how to delete such a file? Or even what type of file this is?
- 10-01-2013 #2
If it is an empty file, then the type doesnt really matter.
It is a bit problematic to remove this file, because the shell interprets "#" as the start of a comment.
So you need to quote the filename or escape the first #
rm "#Hello.World#"You must always face the curtain with a bow.
- 10-12-2013 #3
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Or, if there are no other files with "Hello,World" in their names, then "rm *Hello,World*" will also work. Or you can rename it first. As in
rename '#Hello,World#' 'goodbyecruelworld' *Hello,World* rm goodbyecruelworldSometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!