hfs command not found

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

Introduction

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

hfs: command not found

or when using sudo you get the following error message

sudo: hfs: command not found

Solutions to hfs: command not found

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

In Ubuntu hfs is provided by hfsutils-tcltk package.

hfsutils-tcltk is:

HFS is the native Macintosh filesystem format.

This package contains xhfs, a Tk-based X windows interface, and hfssh, a Tcl-based shell.

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

sudo apt-get -y install hfsutils-tcltk

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

You can also use apt command to install hfsutils-tcltk.

sudo apt -y install hfsutils-tcltk

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

sudo aptitude install hfsutils-tcltk

Summary

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