Your Guide to How To Copy And Paste In Linux

What You Get:

Free Guide

Free, helpful information about Computers & Operating Systems and related How To Copy And Paste In Linux topics.

Helpful Information

Get clear and easy-to-understand details about How To Copy And Paste In Linux topics and resources.

Personalized Offers

Answer a few optional questions to receive offers or information related to Computers & Operating Systems. The survey is optional and not required to access your free guide.

How to Copy and Paste in Linux: A Complete Guide

Linux handles copy and paste differently depending on where you are — the desktop, a terminal, or a graphical application. If you've switched from Windows or macOS, the behavior can feel inconsistent at first. That's because Linux doesn't have one universal clipboard system. It has several, and understanding how they work changes everything.

Why Copy and Paste Works Differently in Linux

Most operating systems have a single clipboard. Linux — particularly when running the X Window System (X11) — maintains multiple clipboard buffers simultaneously. The two you'll encounter most often are:

  • The clipboard selection — works like the clipboard you know. You explicitly copy with Ctrl+C and paste with Ctrl+V.
  • The primary selection — a Linux-specific feature where any text you highlight with your mouse is automatically copied, and middle-clicking pastes it instantly.

This dual-clipboard behavior is a feature, not a bug — but it surprises almost everyone coming from another OS. Wayland, the newer display protocol replacing X11 in many modern distros, handles this somewhat differently, though most desktops maintain backward compatibility with both selections.

Copying and Pasting in Graphical Applications 🖱️

In standard GUI apps — browsers, text editors, file managers — copy and paste works almost identically to Windows:

ActionShortcut
CopyCtrl+C
CutCtrl+X
PasteCtrl+V
UndoCtrl+Z

You can also right-click on selected text and choose Copy or Paste from the context menu. Most modern Linux desktop environments (GNOME, KDE Plasma, XFCE, etc.) support this without any configuration.

The primary selection is also active here. Highlight any text with your mouse and it's immediately available to paste anywhere with a middle mouse click — no Ctrl+C required.

Copying and Pasting in the Linux Terminal

The terminal is where most new Linux users get confused. In terminal emulators, Ctrl+C is reserved — it sends an interrupt signal to stop a running process, not copy text. Using it on selected text will kill whatever command is running.

Instead, terminal copy-paste uses a modified shortcut:

ActionShortcut
CopyCtrl+Shift+C
PasteCtrl+Shift+V

These shortcuts work in most popular terminal emulators: GNOME Terminal, Konsole, Xterm, Alacritty, and others. Some terminals let you remap these in their settings if you prefer different bindings.

The primary selection still works in terminals too. Highlight text with your mouse, then middle-click anywhere in the terminal to paste it — even across different terminal windows or into a GUI app.

Pasting Into the Terminal From Other Apps

If you copy text from a browser or document with Ctrl+C, you paste it into the terminal with Ctrl+Shift+V. If you highlighted text somewhere without explicitly copying it, middle-click works instead.

Command-Line Clipboard Tools

When you're working deep in the terminal — writing scripts, piping output, automating tasks — you may want to interact with the clipboard programmatically. Two common tools handle this:

  • xclip — works with X11 clipboards and supports both the clipboard and primary selections
  • xdotool / wl-clipboard — wl-clipboard (specifically wl-copy and wl-paste) is the equivalent for Wayland sessions

Examples using xclip: