Question

I have a long URL on a web page in Windows that I need to copy into bash shell in Unix. Is there a way to do this without retyping the URL?

Was it helpful?

Solution

If you connect to unix using putty, copy the text from the browser, then right click on the putty window to paste.

OTHER TIPS

You could use Synergy to share your clipboard between the two machines.

I routinely run x2vnc from a Linux box, and have a VNC server (RealVNC) running on a Windows box. This lets me share one mouse and keyboard across the two machines, and the clipboard is also shared across the machines.

As an alternative to right clicking in the putty window, you can also paste by pressing Shift+Insert in the putty window.

(I learned this from the FAQ at the putty website)

If you are on Windows, and you have a Putty session into your unix box, then you can copy the URL to the clipboard in Windows, and then right-click in the putty window. This will do a paste. You could do that paste into a vi session and save the url.

Another option is using the write command. That is, open a terminal on the unix box, and then use Putty to SSH into that same box. do a write tonge (assuming 'tonge' is your user name), paste the URL, and press enter. The recipient (that is, you, with a bash terminal open) will receive that URL.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top