bsdcat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
bsdcat: command not found
or when using sudo you get the following error message
sudo: bsdcat: command not found
Solutions to bsdcat: command not found
How To Fix bsdcat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu bsdcat is provided by libarchive-tools package.
libarchive-tools is:
This package contains several command-line tools based on the libarchive library.
The bsdtar program is the default system ’tar’ program used on FreeBSD. bsdtar uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats.
The bsdcpio program is the default system ‘cpio’ program used on FreeBSD. bsdcpio uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats.
The bsdcat program reads archived data from files or from its standard input and uses the libarchive library to decompresses it to its standard output. It may be used for viewing the contents of archives or for passing it to other tools for further processing.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libarchive-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libarchive-tools.
sudo apt -y install libarchive-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install libarchive-tools
Summary
In this tutorial we learn how to fix bsdcat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.