LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to edit remote file on linux ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-edit-remote-file-on-linux-667090/)

kapilbajpai88 09-02-2008 09:40 AM

how to edit remote file on linux ?
 
Using Cygwin from windows-XP computer,how can i edit some remote RHEL5 computer's file, by opening it through VIM and using the INSERT option. Whether changes are applicable or not ?

klearview 09-02-2008 09:49 AM

Could you elaborate? "Whether changes are applicable or not?" doesn't make much sense in the context.

Did you mean how to save changes? In this case press Esc and then ': w q'

voger 09-02-2008 12:17 PM

If I understand well what you are trying to do you don't need cygwin for that. If that RedHat server has ssh configured you can download putty from here http://www.chiark.greenend.org.uk/~sgtatham/putty/ and log in remotely and get a console to that machine. Once you have logged in you could run vim from there and do whatever you want to do.

chrism01 09-02-2008 07:12 PM

Y, use ssh to login and use the vim on the remote as per normal.

jschiwal 09-02-2008 07:27 PM

Just so you realize it. When you log in and use vim, the vim program is running on the server, not locally. Not only is the file remote, the the programs you run are remote as well. If you have Cygwin/X installed you can even run graphical programs remotely. So if you are partial to kate, you can use it instead, or even run on of the RH system-config-* programs graphically.

kapilbajpai88 09-05-2008 09:54 AM

RC between linux and windows
 
Thank You all for the precious suggestions. i was not there these days...will try all these and if required will come back to you people.

thank you again,
kapil bajpai


All times are GMT -5. The time now is 10:15 AM.