If you are using SSH, there is a big chance that you are using PuTTY. Sometimes, PuTTY users have difficulties to copy/paste shell commands. So, we will explain how to copy/paste text.
- How To Copy And Paste In Putty On Mac
- How To Paste Into Putty
- How To Use Copy And Paste In Putty For Mac Osx
- Select what you want to copy: Images: In most Mac applications, you can select the picture you want to copy by clicking on it once. Image Files: Select the file on your computer that you want to copy and paste, or you can select multiple files by holding down ⌘ to select a group of files.
- In a terminal using Putty: Select the text with the mouse copies directly to the clipboard. Right-Clicking anywhere in the terminal window does the paste. In a regular shell session: I select with the mouse, and use Ctrl+Shift+C to COPY to clipboard. I use Ctrl+Shift+V to paste.
As the Configuring PuTTY page mentions: PuTTY's copy and paste mechanism is modelled on the Unix xterm application. The X Window System uses a three-button mouse, and the convention is that the left button selects, the right button extends an existing selection, and the middle button pastes.
Secure Shell (SSH) is a network protocol that allows you to login and communicate with a remote computer system in a secured way. You can read more on the Wikipedia page.
Copy text to the clipboard
1. Click left mouse button in the terminal window
2. Keep the left mouse button down and drag the text you want to copy
3. Let go the left button. The text will be automatically copied to the clipboard.
If you are using PuTTY under Windows OS, do not try to use the CTRL-C command to copy text as it will not work. In most cases, this command will interrupt a process.
Paste text from the clipboard
1. Here there is just one step: click the right mouse button. The text from the clipboard will be pasted into the PuTTY terminal window.
Useful PuTTY Shortcuts
Shift-Insert – will paste the clipboard content to the PuTTY terminal window
CTRL+Right mouse button and then select Paste option from the menu – will also paste the text from the clipboard
Left mouse button double-click/ double click and drag – a whole word or a sequence of whole words will be copied
Left mouse button triple-click/ triple-click and drag – PuTTY will copy a whole line or sequence of lines.
More information about the copy/paste options can be found on Section 3.1.1 Copying and pasting text of the Help File.
Copying, Cutting, and Pasting in OS X
You can easily copy, cut, or paste pictures, text, and other items easily using the built-in shortcuts and menus in OS X.
Copying text
To copy text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
To copy using secondary-click, first secondary-click the text. Then, select the Copy button from the pop-up menu.
To copy using the keyboard shortcut, select the text. Then, press both the C and Command (⌘) keys at the same time.
How To Copy And Paste In Putty On Mac
Cutting text
How To Paste Into Putty
To cut text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
To cut using secondary-click, first secondary-click the text. Then, select the Cut button from the pop-up menu.
How To Use Copy And Paste In Putty For Mac Osx
To cut using the keyboard shortcut, select the text. Then, press both the X and Command (⌘) keys at the same time.
Pasting text
To paste text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
To paste using secondary-click, first secondary-click the text. Then, select the Paste button from the pop-up menu.
To paste using the keyboard shortcut, select the text. Then, press both the V and Command (⌘) keys at the same time.
Austin
May 20, 2014 10:32 AM