For users new to Linux, copying and pasting commands into the terminal is an integral part of the learning process. Even for experienced users, it’s often faster and safer to paste in pre-written code rather than typing everything by hand, saving time and eliminating typos.
However, if you’re used to standard Windows or macOS shortcuts, you might be surprised to find that Linux terminal shortcuts don’t behave quite the same way. Whether you’re brand new to the command line or just looking for a quick refresher, read on to learn the most reliable ways to copy and paste in the Linux terminal.
Why Linux Terminal Shortcuts Are Different
In almost every modern operating system and web browser, Ctrl + C means Copy and Ctrl + V means Paste. However, the Unix terminal (which Linux is built upon) existed long before these modern standards were created. In Linux, Ctrl + C is hardcoded to send a SIGINT (Signal Interrupt) to the system. This immediately kills whatever process is currently running in your terminal. Because Ctrl + C already has a vital job, Linux terminal emulators had to find a different set of shortcuts for copying and pasting.
Method 1: The Standard Terminal Shortcuts (The Shift Rule)
The most common way to copy and paste in Linux is to simply add the Shift key to the universal shortcuts you already know.
- To copy simply highlight the text with your mouse and press Ctrl + Shift + C.
- To paste simply move your cursor to the terminal and press Ctrl + Shift + V.
If you are copying text from a web browser or a text editor into the terminal, you can still use standard Ctrl + C to copy it. You only need to add the Shift key (Ctrl + Shift + V) when you are actually pasting inside the terminal window.
Method 2: The Right-Click / Context Menu
If you aren’t a fan of keyboard shortcuts or are still building up your muscle memory, you can use your mouse.
- Highlight the text or command you want to copy.
- Right-click anywhere inside the terminal window.
- Select Copy or Paste from the context menu if applicable, otherwise right clicking will simply drop the content you copied into the terminal.
Method 3: The Highlight & Middle-Click Trick (X11 Selection)
Linux features a unique, built-in clipboard system known as the X11 Selection, which modern Wayland systems also support via emulation. It allows you to copy and paste without ever touching your keyboard or opening a right-click menu.
- Highlight any text with your mouse cursor. The moment you let go of the mouse button, that text is automatically copied to a hidden clipboard.
- Move your cursor to where you want the text to go and click your Middle Mouse Button (the clickable scroll wheel). The text will instantly paste. This can work as well with the right mouse button.
Method 4: Copying and Pasting Inside CLI Editors (Nano & Vim)
When you open a Command Line Interface (CLI) text editor directly inside the terminal to modify a system configuration file, standard system clipboards can behave erratically because these text editors use their own internal program buffers.
In Nano:
The Nano editor is designed to be user-friendly, but its copy/paste terminology uses the concepts of cutting and uncutting:
- Cut a line of text with Ctrl + K
- Paste (Uncut) that line with Ctrl + U
- Copy text by dragging your mouse over the text, right clicking it, then use Ctrl + Shift + V

In Vim:
Vim is famous for its steep learning curve because it is a modal editor, meaning keys do different things depending on what mode you are currently using. Vim uses its own unique vocabulary for clipboard management:
- Press v to enter Visual Mode, then use the arrow keys to highlight text
- Press y to yank (copy) the text
- Press p to put (paste) the text

Troubleshooting & Pro-Tips (SSH, Bracketed Paste, Customizing Shortcuts)
Copying and Pasting Over SSH
When you use the terminal to connect to a remote server via SSH, beginners often worry that their clipboard won’t cross over the network. Fortunately, Ctrl + Shift + C and Ctrl + Shift + V still interact with your local computer’s clipboard. You can freely copy a command from your local machine and paste it into a server thousands of miles away.
Dealing with “Bracketed Paste” (Weird ~0 and ~1 Symbols)
Sometimes, when you paste a long script into a modern Linux terminal, you might see strange characters like ^[[200~ and ^[[201~ wrap around your text. This is a safety feature called Bracketed Paste Mode. It prevents the terminal from instantly executing a command the moment it hits the screen, giving you a chance to review it. If your paste looks frozen or broken because of this, press Ctrl + C to clear the line and try pasting via the right-click menu instead.
How to Change Shortcuts back to “Windows Style”
If you prefer standard Windows behavior, you can reconfigure your terminal. Open your terminal’s Preferences or Settings, navigate to the Shortcuts or Keybindings tab, and change the Copy/Paste binds to Ctrl + C and Ctrl + V. If you do this, you will need to assign a new shortcut to terminate running processes, as Ctrl + C will no longer kill tasks.