Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Working with Linux ??? Quick Hacks for the Command Line

You're reading from   Working with Linux ??? Quick Hacks for the Command Line Command line power like you've never seen

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129184
Length 222 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Bogdan Vaida Bogdan Vaida
Author Profile Icon Bogdan Vaida
Bogdan Vaida
Petru I»ôfan Petru I»ôfan
Author Profile Icon Petru I»ôfan
Petru I»ôfan
Arrow right icon
View More author details
Toc

ClipIt – copy-paste at its finest

We believe that one of the greatest inventions of mankind is copy-paste. The ability to take a piece of text from some random place and insert it to another not-so-random place is a huge time saver! Mankind would still be ages behind if computers didn't have this feature! Just imagine having to type every little command, every URL, every block of code you read! It would be a huge waste of time! And so, being such an important feature, copy-paste deserves a tool of its own for managing all the important text you copied. These types of tools are called clipboard managers. There are a lot of options for every operating system, and one good free one for Ubuntu is called clipIt. Open the terminal and type sudo apt install clipit to install it.

ClipIt – copy-paste at its finest

A good scenario for using Guake is to run ClipIt in it. By default, ClipIt occupies a terminal window but, with the help of Guake, we just hide it away!

ClipIt – copy-paste at its finest

The tool is automatically added to the startup applications, so it will start the next time you reboot.

In order to invoke ClipIt, hit Ctrl + Alt + H or click the clipboard image in the menu bar.

ClipIt – copy-paste at its finest

The first times it starts, it warns you that it stores data in plain text, so it might not be safe to use if other users use your account. Currently, it contains only the latest clipboard element.

Let's do a quick example of its usage.

We cat the content of the .profile file. And let's say we want to copy some lines of text and run them in another terminal, which looks like this:

ClipIt – copy-paste at its finest

For example, we might want to update the PATH variable, then source the .bashrc file and update the PATH variable again. Instead of copying the content again from our file, we just hit Ctrl + Alt + H and choose what we want to paste from our clipboard history:

ClipIt – copy-paste at its finest

This is a very basic example. ClipIt mostly comes in handy when you work long hours on your computer and need to paste something that you copied from a website hours earlier. It comes with a default history size of 50 items and it will show you the last 10 items in your floating window. You can increase these limits in the settings:

ClipIt – copy-paste at its finest

With ClipIt, you can copy and paste as many times as you want without losing any data. It's like a time machine for your clipboard!

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image