How to cut and paste in Ubuntu terminal? Know these keyboard shortcut for copy and paste in Ubuntu terminal. Users can easily enable copy and paste in Ubuntu terminal.
In most of the application, keyboard shortcuts for Cut, Copy and Paste are Ctrl + X, Ctrl + C and Ctrl+V respectively. But in Linux Ubuntu Terminal, Ctrl+C is Cancel Command and Ctrl + X & Ctrl + V doesn’t work. The standard keyboard shortcuts, such as Ctrl+C, cannot be used to copy and paste text.
How to Copy in the Ubuntu Terminal
Use “Ctrl + Insert” to copy a command. You can also copy text using mouse (right-click). To copy text from the Terminal window, simply highlight the text, right-click on it, and select “Copy” from the menu.
How to Paste in the Ubuntu Terminal
To paste text or commands in Ubuntu Terminal window, use Ctrl + Shift + V. You can also use “Shift + Insert”, to paste the command in the Terminal window.
GUI Method
You can also select a text or command and right click on it to copy.
Ubuntu Terminal Keyboard Shortcut Keys
There are other useful Ubuntu Terminal keyboard shortcut keys that you must know:
- Ctrl + A or Home : Moves the cursor to the start of a line.
- Ctrl+ E or End : Moves the cursor to the end of a line.
- Esc + B : Moves to the beginning of the previous or current word.
- Ctrl + K : Deletes from the current cursor position to the end of the line.
- Ctrl + U : Deletes from the start of the line to the current cursor position.
- Ctrl + W : Deletes the word before the cursor.
- Alt + B : Goes back one word at a time.
- Alt + F : Moves forward one word at a time.
- Alt + C : Capitalizes letter where cursor is and moves to end of word.
- Up Arrow or Ctrl + P : Scrolls through the commands you’ve entered previously.
- Down Arrow or Ctrl + N : Takes you back to a more recent command.
- Tab : It auto-completes any commands or filenames, if there’s only one option, or else gives you a list of options.
- Ctrl + R : Searches for commands you’ve already typed.
- History : The history command shows a very long list of commands that you have typed.