Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Location
    Vancouver
    Posts
    19

    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?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    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 #
    Code:
    rm "#Hello.World#"
    As to how it was created.. no idea.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,601
    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
    Code:
    rename '#Hello,World#' 'goodbyecruelworld' *Hello,World*
    rm goodbyecruelworld
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •