PDA

View Full Version : Opening files that begin with a period



LeeU
May 30th, 2007, 03:47 AM
Using an editor, how do I open a file the begins with a period, e.g., ".htaccess"?

Medieval_Creations
May 30th, 2007, 04:01 AM
Any file or directory with a . infront of it just means it's hidden.
You should be able to open it like any other file.


pico .htaccess

Depending on the file you may need to use sudo. Also if you're using a GUI when you click on Open File, most have an option that shows hidden.

LeeU
May 30th, 2007, 04:15 AM
Any file or directory with a . infront of it just means it's hidden.
You should be able to open it like any other file.


pico .htaccess

Depending on the file you may need to use sudo. Also if you're using a GUI when you click on Open File, most have an option that shows hidden.

In the case I mentioned, the editors I use (i.e., Cream version of vim) don't have an option to show hidden files.

xtacocorex
May 30th, 2007, 12:32 PM
Sometimes when I need a GUI editor to open a hidden file I'll open it from the terminal.

gedit ~/.bashrc &

LeeU
May 30th, 2007, 02:09 PM
Thanks, I'll give it a try. I just thought there was something I could do so i could just open it from the program itself. I use n editor under Wine and was trying to do it that way also.

bukwirm
May 30th, 2007, 09:07 PM
In vim, ":e filename" opens any file, as long as you have permission to do so (and have the filename correct).