LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-02-2008, 09:40 AM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question 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 ?
 
Old 09-02-2008, 09:49 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
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'
 
Old 09-02-2008, 12:17 PM   #3
voger
Member
 
Registered: Oct 2005
Distribution: Arch
Posts: 68

Rep: Reputation: 15
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.
 
Old 09-02-2008, 07:12 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Y, use ssh to login and use the vim on the remote as per normal.
 
Old 09-02-2008, 07:27 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 09-05-2008, 09:54 AM   #6
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
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
 
  


Reply

Tags
between, rc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
Startup file on debian linux x86_64, looking to edit Wolvenmoon Linux - Software 1 08-19-2005 09:29 AM
Is there a way to modify/edit/erase a file in a WinXP partition from within Linux? aixarat Linux - Newbie 8 09-25-2004 11:07 PM
Bluefish - How do you edit on a remote server? nchase Linux - Software 1 04-02-2004 08:11 PM


All times are GMT -5. The time now is 04:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration