0

I had a really bad idea: Curious about what could happen, I wanted to try to use various non-alphanumerical characters as file names. Think may have been a bad idea. I created the a file in the terminal, using nano:

nano \.sh

I just wrote echo hello in it, and saved it. Then, I made it executable:

chmod +x \.sh

surprisingly, it printed hello when I wrote ./\.sh

Now, I began to get cold feet about this action. Have I broken something? The file does not show up in any file explorer or in ls, except for in search, where it shows up with an icon that looks like a directory with a wire, without any options. (like "open").

What may have been broken by this foolish action, and if so how can I fix the possible damage?

1 Answers1

1

I don't believe you have broken anything. Who cares if the files is not displayed. You have found a good way to hide a file. :)

Otherwise hidden file names are the ones with the dot at the beginning (for instance .bashrc).

You can just delete the file with rm ./\\.sh and there will be no trace of your little experiment.

nobody
  • 4,412