LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file editing (https://www.linuxquestions.org/questions/linux-newbie-8/file-editing-303311/)

newdummy 03-18-2005 06:05 PM

file editing
 
I have a file that I am trying to edit, but every time I click on it, it disappears. When I refresh the folder view it comes back. This is a configuration file for an application that I need to edit. I have set the permissions to 666. What is happening to the file?

comprookie2000 03-18-2005 06:11 PM

It is trying to execute it.Right click it and open it in a text editor.
also if I remember right you can change the preferences in nautilus to ask what to do when opening a file.

newdummy 03-18-2005 06:26 PM

File Editing
 
Thanks for the tip. Unfortunately, when I right click to get to the editor is when the file disappears. Actually it happens any time I click (left or right) the file. The reason I am having to edit the file is because I think my site got hacked last nite. I thought that might be the reason I cannot edit this file any longer.

comprookie2000 03-18-2005 06:29 PM

Try nano or pico;
nano -w /link/to/file
then ctrl o then enter to save and ctrl x to exit

newdummy 03-18-2005 07:47 PM

Thanks, That got me into the file so that I can edit it. I still can't figure out why it suddenly started doing that.

comprookie2000 03-18-2005 08:16 PM

Nautilus can be buggie at times,I use mc (midnight commander) to edit move copy remove etc,I use nautilus to view images,so I can remember what they are before I use them.


All times are GMT -5. The time now is 09:29 PM.