LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-06-2009, 01:28 AM   #1
MissingLink
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Command Line File Replace


Hi there

I am newer than new to Linux, but need to do some editing of html documents that are sitting on a linux computer.

I am running an application utilising rPath and Red Hat Linux nash version 4.2.15. This application has a web interface that can be accessed from remote computers over a network. I need to change some of the images in the web interface. I have located, through bash commands, where the images reside on the box. Now I need to know how I can replace these files remotely? And is there a way for me to copy these files from the box to a remote computer and visa versa?

Thanks in advance
 
Old 02-06-2009, 01:47 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
If you are using SSH which I assume you are, then you can use SCP to transfer files to/from the server, this is more secure then FTP. If your on a windows computer, winSCP is a good tool for handling this, else wise their is a built in command line SCP client for linux, not sure about GUI options for Linux.

Generally you shouldn't edit HTML live, but switching the pictures themselves with pictures named the same thing should appear as a transparent change and should work.
 
Old 02-06-2009, 01:48 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
If you are using KDE, konqueror support the fish protocol. If you can log into the remote machine using ssh then you can do the same with konqueror using fish://[your username]@[remote machine]/
You will be prompted for a password. Then you can copy/paste/delete files (including images) exactly as you would on your local machine.

I only mention konqueror because I know it has this functionality. It could well be the case that other file managers can do the same.

You could also use ftp if the remote server is running ftp and you have permissions to write to the folders in question.

Cheers,
jdk
 
Old 02-06-2009, 02:47 AM   #4
MissingLink
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, winSCP worked great
 
  


Reply



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
bash: replace a line in text file freeindy Programming 10 09-08-2011 12:08 PM
Replace Command Line Interface sekelsenmat Mandriva 3 11-01-2006 09:20 AM
Replace line in file with two lines?! Possible? eur0dad Linux - General 2 09-07-2006 02:15 PM
command line edit -- global find/replace on text file w/o going into vi car182 Linux - Newbie 4 05-25-2006 05:42 PM
find and replace in files from command line dexter_modem Linux - General 4 06-10-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration