cow-shell command not found

In this troubleshooting guide we learn how to fix cow-shell command not found error message

Introduction

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

cow-shell: command not found

or when using sudo you get the following error message

sudo: cow-shell: command not found

Solutions to cow-shell: command not found

How To Fix cow-shell: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cow-shell is provided by cowdancer package.

cowdancer is:

Tries to make copy-on-write semantics upon hard-link copied directory trees generated with ‘cp -la’

‘cow-shell’ command invokes a shell session. Within that session, under the directory cow-shell was invoked, cowdancer will create a new file when existing i-nodes are opened for write. Useful for quick scratch workspace and experimentation.

For a useful Debian tool, try cowbuilder.

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

sudo apt-get -y install cowdancer

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

You can also use apt command to install cowdancer.

sudo apt -y install cowdancer

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

sudo aptitude install cowdancer

Summary

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