logprn command not found

In this troubleshooting guide we learn how to fix logprn command not found error message

Introduction

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

logprn: command not found

or when using sudo you get the following error message

sudo: logprn: command not found

Solutions to logprn: command not found

How To Fix logprn: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu logprn is provided by logtools package.

logtools is:

clfmerge - merge common-log-format web logs in order without sorting (good for when you have a gig of logs).

logprn - like “tail -f” but after a specified time period of inactivity will run a program (such as lpr) and pipe the new data to it)

funnel - pipe one stream of data to several files or processes.

clfsplit - split CLF format web logs by client IP address.

clfdomainsplit - split CLF logs by server domain.

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

sudo apt-get -y install logtools

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

You can also use apt command to install logtools.

sudo apt -y install logtools

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

sudo aptitude install logtools

Summary

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