Copy and paste works differently in Linux than in Windows or macOS, and the difference matters

Linux has two separate clipboard systems running at the same time. One works the way you expect — you select text, press Ctrl+C, move somewhere else, and press Ctrl+V. The other is older and still active: anything you highlight with your mouse goes into a "selection clipboard" that you paste by middle-clicking. Both exist, both work, and both can confuse you if you don't know which one is active. Understanding which clipboard you're using prevents you from losing text you thought you copied and helps you work faster once you know the shortcuts.

The reason Linux has two systems is historical. The selection clipboard came first, built into the X Window System that Linux uses to display windows and handle input. The Ctrl+C/Ctrl+V system came later, borrowed from Windows. Most Linux desktops kept both because removing one would break older programs and workflows. You don't need to choose between them — you just need to know which one you're using in each situation.

Key Takeaways

  • Highlighting text with your mouse automatically copies it to the selection clipboard, which you paste by middle-clicking — no Ctrl+C needed.
  • Ctrl+C and Ctrl+V use a separate clipboard that works like Windows, and you must press Ctrl+C to copy — highlighting alone does not trigger it.
  • The two clipboards are independent, so text in one does not appear in the other, and you can lose work by mixing them up.
  • Middle-click pastes from the selection clipboard on most Linux desktops, but some newer systems use Ctrl+Shift+V instead.
  • Touchpads without a middle-click button can usually simulate one by pressing the left and right buttons at the same time.

The selection clipboard: highlight and middle-click

The selection clipboard is always watching. The moment you highlight any text with your mouse — in a text editor, a web browser, a terminal, anywhere — that text goes into the selection clipboard. You don't press anything. You don't see a notification. It just happens. To paste from the selection clipboard, you middle-click wherever you want the text to go.

This is fast once you're used to it. You can highlight a filename in your file manager, middle-click in a terminal, and the filename appears — all without touching the keyboard. You can copy a URL from your browser, middle-click in a text editor, and paste it. The selection clipboard works across programs and windows seamlessly.

The catch is that the selection clipboard only holds what you've highlighted right now. The moment you highlight something else, the old text is gone. If you highlight a word by accident, you've overwritten what you meant to copy. This is why the selection clipboard feels unreliable to people coming from Windows — it's not designed for holding text while you do other things.

The standard clipboard: Ctrl+C and Ctrl+V

The Ctrl+C and Ctrl+V clipboard works like you're used to. You select text (by highlighting it or using Shift+arrow keys), press Ctrl+C, and the text stays in the clipboard until you copy something else. You can then navigate to a different window, a different program, or a different part of the document, and press Ctrl+V to paste. The text remains in the clipboard until you copy again.

This clipboard is more predictable than the selection clipboard because it doesn't change when you highlight text by accident. You have to deliberately press Ctrl+C to copy. This makes it safer for longer workflows where you need to hold onto text while you do other things.

The standard clipboard and the selection clipboard are completely separate. Text you copy with Ctrl+C does not appear when you middle-click, and text you highlight does not appear when you press Ctrl+V. This separation is useful once you understand it — you can use one clipboard for temporary selections and the other for text you want to keep — but it's the main source of confusion for new Linux users.

How to copy and paste in a terminal

Terminal windows usually disable Ctrl+C for copying because Ctrl+C is the keyboard shortcut to stop a running program. If you press Ctrl+C while a program is running, it terminates the program instead of copying text. This is intentional — the terminal prioritizes stopping runaway processes over the convenience of keyboard shortcuts.

To copy text from a terminal, highlight it with your mouse and use the selection clipboard: middle-click to paste it elsewhere. If you need to copy text from a terminal and paste it into the same terminal, highlight the text, then right-click and select "Copy" from the context menu. Most terminal programs also support Ctrl+Shift+C and Ctrl+Shift+V as alternatives to Ctrl+C and Ctrl+V, which lets you use the standard clipboard without interfering with the Ctrl+C stop command.

Check your terminal's preferences to see which shortcuts it supports. In GNOME Terminal, Ctrl+Shift+C copies and Ctrl+Shift+V pastes. In Konsole (the KDE terminal), both Ctrl+C and Ctrl+Shift+C work for copying, depending on whether text is selected. In xterm, you must use the selection clipboard — middle-click to paste.

Pasting when you don't have a middle mouse button

Laptops and many external mice don't have a dedicated middle button. On a touchpad, you can usually simulate a middle-click by pressing the left and right buttons at the same time. On a mouse with only left and right buttons, you may need to enable a setting in your system preferences.

Some Linux desktops offer an alternative: Ctrl+Shift+V pastes from the selection clipboard instead of requiring a middle-click. This is not standard across all programs, but it works in many text editors, file managers, and terminal emulators. Test it in the program you're using — if it works, you have a keyboard shortcut for the selection clipboard.

If neither middle-click nor Ctrl+Shift+V works, you can install a clipboard manager like Parcellite or Klipper, which gives you a graphical interface to access both clipboards. These tools sit in your system tray and let you click to paste from either clipboard without needing a middle button.

Copying and pasting between Linux and other systems

If you're running Linux in a virtual machine on Windows or macOS, copy and paste between the host system and the Linux guest depends on your virtualization software. VirtualBox, VMware, and QEMU all support clipboard sharing, but you must enable it in the virtual machine settings. Once enabled, Ctrl+C and Ctrl+V work between the host and guest — the selection clipboard usually does not sync across the boundary.

If you're using SSH to connect to a remote Linux system, you cannot use the mouse to highlight and copy text from the remote terminal directly. Instead, use Ctrl+Shift+C to copy from your local terminal window, or use the selection clipboard on the remote system and paste with middle-click within the remote terminal. Some SSH clients like PuTTY have their own copy and paste behavior — check your client's documentation.

Why Linux has two clipboards and what to do about it

The two-clipboard system exists because Linux evolved from Unix, which predates modern graphical interfaces. The selection clipboard is part of the X Window System, the layer that handles graphics and input on most Linux desktops. The standard Ctrl+C/Ctrl+V clipboard came later, added to match Windows behavior. Rather than remove the older system and break compatibility with decades of programs, Linux kept both.

Once you know which clipboard you're using, the system becomes an advantage. You can use the selection clipboard for quick, temporary copies — highlight a filename, middle-click to paste it — while using Ctrl+C and Ctrl+V for text you need to hold onto. You can even use both at the same time without them interfering with each other.

The best approach is to pick one system and stick with it until it becomes automatic. If you prefer keyboard shortcuts, use Ctrl+C and Ctrl+V everywhere and ignore the selection clipboard. If you prefer the mouse, highlight text and middle-click to paste. Both work perfectly well — the confusion only happens when you mix them.

Frequently Asked Questions

Why did I highlight text but Ctrl+V didn't paste it?

Highlighting text copies it to the selection clipboard, not the standard clipboard. Ctrl+V only pastes from the standard clipboard. You need to press Ctrl+C after highlighting to copy to the standard clipboard, or middle-click to paste from the selection clipboard instead.

Can I copy text from one program and paste it into another?

Yes, both clipboards work across programs. If you use Ctrl+C and Ctrl+V, text moves between any programs that support those shortcuts. If you use the selection clipboard, highlight in one program and middle-click in another. The two clipboards don't share with each other, so don't mix the methods.

What's the difference between middle-click and right-click?

Right-click opens a context menu with options like "Copy" and "Paste". Middle-click directly pastes from the selection clipboard without showing a menu. If your mouse doesn't have a middle button, right-click and select "Paste" from the menu instead.

Does the selection clipboard work in web browsers?

Yes. Highlight text in a web page and middle-click in a text editor or terminal to paste it. Some websites disable right-click menus for copy protection, but they cannot disable the selection clipboard — it's a system-level feature that works regardless of what the website tries to do.

Can I use Ctrl+X to cut text in Linux?

Yes. Ctrl+X cuts text to the standard clipboard, Ctrl+C copies it, and Ctrl+V pastes it. The selection clipboard does not have a cut function — it only copies when you highlight. Cutting with Ctrl+X works the same way in Linux as it does in Windows or macOS.