How to copy entire contents of UNIX file from putty vi editor and then paste it to Notepad++?
Linux - NewbieThis 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
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.
How to copy entire contents of UNIX file from putty vi editor and then paste it to Notepad++?
Hi,
How to copy entire contents of file from putty vi editor and then paste it to Notepad++? The file is in UNIX server.
For e.g if there is a xml file with 10KB i get only portion of it in the putty vi editor screen because of which by using mouse i am unable to copy the whole file. Is there a way to copy the whole contents of the file and then paste it to notepad++?
How to copy entire contents of file from putty vi editor and then paste it to Notepad++? The file is in UNIX server.
For e.g if there is a xml file with 10KB i get only portion of it in the putty vi editor screen because of which by using mouse i am unable to copy the whole file. Is there a way to copy the whole contents of the file and then paste it to notepad++?
Thanks and Regards
Gautam
Instead of vi, use cat to dump out the entire file. Then copy the lines in Putty and paste them to your Windows program.
If the file is too long, you need to right-click the upper frame of Putty, select Change Settings in the menu that appears, then select Window. You will find a field labeled with Lines of scrollback. Increase the number.
if you can open a file in vi then why not just copy the file itself, or open it , if it is going over a wire, then save it in to the local directory as a flat file, which it should be. Then open in a different text editor?
if you can open a file in vi then why not just copy the file itself, or open it , if it is going over a wire, then save it in to the local directory as a flat file, which it should be. Then open in a different text editor?
A very valid point.
I don’t know Gautam4k’s situation, but I often work in a specific environment that gives me remote desktop access, but no other type of connections, i.e. no SSH. I have even copied binaries by ASCII-encoding them and transferring them in the described way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.