LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2005, 05:22 PM   #1
enortham
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Copy and pasting between terminals


Is there a way to copy and paste the contents of a file between terminals? Say for example I open a terminal in Redhat and log in to one server and want to copy the contents of an httpd.conf file to another open terminal. Since the file is too big to fit on the screen, I can't just select the lines I want to copy. Ideally it would be great if I could somehow pipe the contents to the clipboard but I know that's probably impossible. Just curious how others get around this. Unfortunately it's a pain to transfer the file because I reach the remote server via several other servers. Plus it's nice to just paste into a working doc.

TIA,

Eric
 
Old 12-26-2005, 09:26 PM   #2
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Rep: Reputation: 30
If you can open a terminal window to one machine, can you then just scp the file back to your current machine? initiate the scp from the remote server side, directly back to the machine that you are on?
 
Old 12-27-2005, 02:00 AM   #3
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
As far as I know, you should run a servise (deamon) named like "console servise" to do that
 
Old 12-27-2005, 02:05 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I couldn't figure this out so I downloaded an x program called "LeafPad" -- pretty useful, though I wish I could figure out how to copy from terminal to terminal (even within X).
 
Old 12-27-2005, 09:45 AM   #5
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
Most X terminals (like aterm and xterm) all you have to do is highlight the text you want to copy, and leave it highlighted (dont click anywhere else in the term's window) and then go to wherever you wanna paste it and click the third mouse button (i think... i donno, i click my mouse wheel) and it should paste it. If you dont have a third mouse button you can turn the emulation for a third mouse button on in your xorg.conf or XF86Config file. Other terminals, I think things like eterm and konsole have a feature where you can highlight and then right click on the selected text to copy it, but I'm not sure, its been a long time sence I used any of those, my preference is aterm.
 
  


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
copy pasting from X app to vim Furlinastis Linux - General 3 12-05-2005 09:05 PM
Terminals - spying on local terminals with ssh BeatRyder Linux - Software 5 10-21-2004 01:47 AM
copy pasting in emacs wogga Linux - Software 7 06-16-2004 03:12 PM
Questions on copy+pasting, gdesklets and more! Tyir Linux - General 2 03-23-2004 02:52 AM
Copy text between terminals? Ryan_Sutton Linux - Newbie 3 07-06-2002 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 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