rawtmp command not found

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

Introduction

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

rawtmp: command not found

or when using sudo you get the following error message

sudo: rawtmp: command not found

Solutions to rawtmp: command not found

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

In Ubuntu rawtmp is provided by sac package.

sac is:

Performs login accounting, just like the ac program but with totals, per day and per users. Also performs average usage and hourly profiling. Tons of other options.

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

sudo apt-get -y install sac

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

You can also use apt command to install sac.

sudo apt -y install sac

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

sudo aptitude install sac

Summary

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