bar command not found

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

Introduction

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

bar: command not found

or when using sudo you get the following error message

sudo: bar: command not found

Solutions to bar: command not found

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

In Ubuntu bar is provided by bar package.

bar is:

Bar is a simple tool to process a stream of data and print a display for the user on stderr showing (a) the amount of data passed, (b) the throughput of the data transfer, and, if the total size of the data stream is known, (c) estimated time remaining, percent complete, and a progress bar.

Bar was originally written for the purpose of estimating the amount of time needed to transfer large amounts (many, many gigabytes) of data across a network. (Usually in an SSH/tar pipe.)

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

sudo apt-get -y install bar

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

You can also use apt command to install bar.

sudo apt -y install bar

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

sudo aptitude install bar

Summary

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