In this article, we will explore how to set up Putty-like copy/paste functionality in the Ubuntu terminal. This guide is intended for those who are familiar with the Putty terminal emulator’s copy/paste functionality and would like to replicate it in Ubuntu’s terminal.
To set up Putty-like copy/paste functionality in the Ubuntu terminal, you can use the middle-click method, configure shortcuts in the Gnome Terminal, or install Putty itself.
What is Putty?
Putty is a free and open-source terminal emulator that supports several network protocols, including SCP, SSH, Telnet, and rlogin. It is primarily used to establish remote connections to servers. One of its notable features is its copy/paste functionality, which allows users to copy text by simply selecting it and paste by right-clicking.
Setting Up Putty-like Copy/Paste in Ubuntu Terminal
Method 1: Using the Middle-Click Method
The quickest way to replicate Putty-like copy/paste functionality in Ubuntu is by using the middle-click method. Here’s how you do it:
- Open the terminal by pressing
Ctrl + Alt + T.
- Select the text you want to copy.
- To paste the copied text, simply press the middle button on your mouse (this could be the mouse wheel or pressing both mouse buttons at the same time).
This method works with selectable text in the terminal, browser, and other applications.
Method 2: Using Gnome Terminal
The default terminal in Ubuntu, known as the Gnome Terminal, uses the middle-click button for paste. If you prefer using the left-click for copy and right-click for paste, you may need to find an alternative terminal that allows you to configure the mouse buttons for copy and paste. Here’s how you can do it:
- Open the Gnome Terminal by pressing
Ctrl + Alt + T.
- Go to
Edit > Profile Preferences > Shortcuts.
- Here, you can set your preferred shortcuts for copy and paste.
Method 3: Using Putty in Ubuntu
Another option is to install Putty in Ubuntu and use it instead of the terminal. To do this, you can use the following command:
sudo apt-get install putty
In this command,
sudo allows you to run commands with administrative privileges,
apt-get is the package handling utility in Ubuntu, and
install is the command to install a new package. After running this command, you can launch Putty from the Ubuntu dashboard.
Setting up Putty-like copy/paste functionality in the Ubuntu terminal may require some trial and error to find the method that works best for you. Whether it’s using the middle-click method, configuring shortcuts in the Gnome Terminal, or using Putty itself, each method has its pros and cons. It’s important to try different methods and choose the one that suits your needs.
Yes, the middle-click method can be used to copy and paste in any application that supports text selection and the middle-click functionality. This includes the Ubuntu terminal, web browsers, text editors, and other applications.
Yes, you can configure the mouse buttons for copy and paste in the Gnome Terminal. By going to
Edit > Profile Preferences > Shortcuts, you can set your preferred shortcuts for copy and paste. However, by default, the Gnome Terminal uses the middle-click button for paste.
Yes, you can install Putty in Ubuntu to use its copy/paste functionality. By running the command
sudo apt-get install putty in the terminal, you can install Putty. After installation, you can launch Putty from the Ubuntu dashboard and use its copy/paste functionality.