Member-only story
3 Interactive Command Tools for Linux
Handle Linux commands the easy way
It’s challenging to remember Linux commands. We know by heart the ones we use to fulfill everyday tasks. We tend to forget about long commands and scripts we executed in the past.
It would be nice to get a hint of what we’re looking for. This way, we can focus on completing our task instead of trying to memorize the commands.
I’ve collected three handy tools to help you with Linux commands. You’ll easily achieve such tasks: finding a command from the history, executing one-liners from a cheat sheet straight away, etc.
Let’s get started!
1. Peco
Peco is a simple-to-use interactive filtering tool. It’s similar to grep
, but it’s more powerful because you can type while searching for something.
Peco can be handy in numerous use cases. Imagine you want to search for files, logs, processes, etc. You don’t have to remember complicated command combinations. It’s enough to combine the primary command (e.g. ls
, history
, find
, etc.) with peco
. Then start filtering the results as you type.
Installation
To install the tool on Ubuntu, run the following command:
sudo apt-get install peco
Check the documentation for more installation options.
Demo
Let’s filter the history to find what curl
commands we executed in the past. Here’s what that looks like:

As you’ve probably noticed, it supports AND
style queries. I typed “medi” after the curl
command, and it filtered curl https://medium.com. This way, you get more accurate results faster.
To exit the query prompt, press Ctrl + C
.
Let’s see another example where we combine peco
with nestat
to filter ports: