Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.