How to copy/paste in terminal?
In this article, you will learn how to copy and paste in a terminal.
Copy and Paste on Desktop
On Windows and Linux, you can easily copy and paste using Ctrl + Shift + C
/ Ctrl + Shift + V
.
On a MacOS, use Cmd + C
to copy and Cmd + V
to paste.
You can change the shortcuts by overriding Copy from Terminal and Paste to Terminal in Settings -> Shortcuts
.
Select to copy
You can copy and paste text in the terminal using a mouse. Enable the Select text to copy && Right-click to paste settings enabled in Settings -> Terminal
.
Once it's enabled, the selected text is automatically copied to your clipboard. Next, you can right-click to paste a text.
Copy and Paste on Mobile
On iOS and Android, use a long press in the terminal to open a context menu, then tap the Copy or Paste.