The Basic Keyboard Shortcuts for Linux Copy and Paste
Copy and paste in Linux works the same way as in Windows or macOS — you select text, press Ctrl+C to copy it, then press Ctrl+V to paste it where you want it. These shortcuts work in nearly every Linux application: text editors, web browsers, file managers, and terminal windows. The process is identical whether you are using Ubuntu, Fedora, Debian, or any other Linux distribution.
The only exception is the Linux terminal itself, which sometimes uses Ctrl+Shift+C to copy and Ctrl+Shift+V to paste, depending on which terminal application you have open. This prevents conflicts with other terminal commands that use Ctrl+C (like stopping a running program). If the standard shortcuts do not work in your terminal, try adding Shift to both keys.
Key Takeaways
- Use Ctrl+C to copy and Ctrl+V to paste in most Linux applications, just like Windows.
- In terminal windows, you may need Ctrl+Shift+C and Ctrl+Shift+V instead, because Ctrl+C stops running programs.
- Linux also has a middle-click paste feature that copies and pastes selected text instantly without using the keyboard.
- You can copy and paste between different applications, and the text stays in the clipboard until you copy something else.
Using Middle-Click to Paste Selected Text
Linux has a second clipboard system that many users do not know about. When you select text with your mouse (without pressing Ctrl+C), that text automatically goes into a special clipboard. You can then paste it anywhere by clicking your middle mouse button — or by clicking both the left and right buttons at the same time if you have a trackpad without a middle button.
This middle-click paste works in almost every Linux application and is often faster than Ctrl+C and Ctrl+V because you do not have to press any keys. Select the text, move your cursor to where you want it, and click the middle button. The text appears instantly. This clipboard is separate from the one used by Ctrl+C, so you can have two different pieces of text ready to paste at the same time.
Copying and Pasting in the Terminal
The Linux terminal is where copy and paste behaves differently. If you try Ctrl+C in a terminal window, it stops whatever program is running instead of copying text. To copy text from the terminal, use Ctrl+Shift+C, and to paste, use Ctrl+Shift+V. Some terminal applications like GNOME Terminal and Konsole follow this rule consistently.
If you want to copy a command from a website or document and run it in the terminal, paste it with Ctrl+Shift+V. You can also select text in the terminal with your mouse and paste it using the middle-click method, which works the same way as in other applications. This avoids the keyboard shortcuts entirely if you find them hard to remember.
Copying Between Different Applications
Text you copy in one application stays in the clipboard and can be pasted into any other application. Copy text from a web browser, paste it into a text editor. Copy a file path from a file manager, paste it into the terminal. The clipboard does not care which application put the text there — it just holds whatever was copied most recently.
If you copy something new, it replaces what was in the clipboard before. There is no way to access old clipboard history with the standard Ctrl+C and Ctrl+V shortcuts. However, some Linux desktop environments like GNOME and KDE have optional clipboard managers that can store multiple items. You can install one if you frequently need to switch between several pieces of copied text.
What to Do If Copy and Paste Is Not Working
If Ctrl+C and Ctrl+V do not work in a specific application, the application itself may not support these shortcuts. Try using the Edit menu instead — most applications have Copy and Paste options there. You can also try the middle-click method, which works in almost everything.
In the terminal, if Ctrl+Shift+C and Ctrl+Shift+V do not work, check which terminal application you are using. Some older or less common terminals use different shortcuts. Right-click in the terminal window to see if there is a context menu with Copy and Paste options. You can also check the application's preferences or help menu to see what the correct shortcuts are for that specific terminal.
Copying and Pasting Files in the File Manager
File managers like Nautilus (GNOME Files), Dolphin (KDE), and Thunar work with Ctrl+C and Ctrl+V just like text editors do. Select a file or folder, press Ctrl+C to copy it, navigate to where you want it, and press Ctrl+V to paste it. You can also right-click a file and choose Copy from the menu, then right-click in the destination folder and choose Paste.
When you paste a file, the file manager creates a copy of the original — the original stays where it was. If you want to move a file instead of copying it, use Ctrl+X (cut) instead of Ctrl+C, then paste with Ctrl+V. The file will move to the new location and disappear from the old one.
Frequently Asked Questions
Why does Ctrl+C not work in my terminal?
Ctrl+C in a terminal stops the program that is running, not copy text. Use Ctrl+Shift+C to copy instead. If that does not work, your terminal application may use different shortcuts — check its preferences menu or try right-clicking to see the available options.
Can I copy and paste between Linux and Windows?
If you are running Linux in a virtual machine on Windows, yes — copy and paste usually works between the host and guest systems automatically. If you are using two separate computers, you will need to use a file transfer method or cloud storage instead, since the clipboard only works within one computer.
What is the difference between Ctrl+C and middle-click paste?
Ctrl+C copies text to the main clipboard. Middle-click paste uses a separate clipboard that is filled automatically whenever you select text with the mouse. Both work, but middle-click is faster because you do not have to press keys — just select and click.
How do I copy a file path to paste in the terminal?
Open your file manager, right-click the file or folder, and look for an option like "Copy Path" or "Copy Location". If that option does not exist, select the path in the address bar, copy it with Ctrl+C, then paste it into the terminal with Ctrl+Shift+V.
Can I undo a paste if I pasted the wrong thing?
Yes, use Ctrl+Z to undo the paste in most applications. This works in text editors, file managers, and many other programs. In the terminal, undo may not work the same way — it depends on what program you are running inside the terminal.