fish command not found

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

Introduction

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

fish: command not found

or when using sudo you get the following error message

sudo: fish: command not found

Solutions to fish: command not found

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

In Ubuntu fish is provided by fish package.

fish is:

Fish is a shell geared towards interactive use. Its features are focused on user friendliness and discoverability. The language syntax is simple but incompatible with other shell languages.

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

sudo apt-get -y install fish

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

You can also use apt command to install fish.

sudo apt -y install fish

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

sudo aptitude install fish

Summary

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