mactime command not found

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

Introduction

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

mactime: command not found

or when using sudo you get the following error message

sudo: mactime: command not found

Solutions to mactime: command not found

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

In Ubuntu mactime is provided by sleuthkit package.

sleuthkit is:

The Sleuth Kit, also known as TSK, is a collection of UNIX-based command line file and volume system forensic analysis tools. The filesystem tools allow you to examine filesystems of a suspect computer in a non-intrusive fashion. Because the tools do not rely on the operating system to process the filesystems, deleted and hidden content is shown.

The volume system (media management) tools allow you to examine the layout of disks and other media. You can also recover deleted files, get information stored in slack spaces, examine filesystems journal, see partitions layout on disks or images etc. But is very important clarify that the TSK acts over the current filesystem only.

The Sleuth Kit supports DOS partitions, BSD partitions (disk labels), Mac partitions, Sun slices (Volume Table of Contents), and GPT disks. With these tools, you can identify where partitions are located and extract them so that they can be analyzed with filesystem analysis tools.

Currently, TSK supports several filesystems, as NTFS, FAT, exFAT, HFS+, Ext3, Ext4, UFS and YAFFS2.

This package contains the set of command line tools in The Sleuth Kit.

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

sudo apt-get -y install sleuthkit

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

You can also use apt command to install sleuthkit.

sudo apt -y install sleuthkit

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

sudo aptitude install sleuthkit

Summary

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