yank-cli command not found

In this troubleshooting guide we learn how to fix yank-cli command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

yank-cli: command not found

or when using sudo you get the following error message

sudo: yank-cli: command not found

Solutions to yank-cli: command not found

How To Fix yank-cli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu yank-cli is provided by yank package.

yank is:

Read input from stdin and draw a selection interface where all fields in the given input are recognized by using a default or user-supplied set of delimiters.

Using ctrl-n and ctrl-p will move the field selection forward and backward, pressing the return key will invoke the yank command and write the selected field to its stdin. The yank command defaults to xsel, but could be anything that accepts input on stdin.

To fix this problem, we can install more using the command below.

sudo apt-get -y install yank

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install yank.

sudo apt -y install yank

Or if you have aptitude installed you can use the following command.

sudo aptitude install yank

Summary

In this tutorial we learn how to fix yank-cli command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.