csstidy command not found

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

Introduction

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

csstidy: command not found

or when using sudo you get the following error message

sudo: csstidy: command not found

Solutions to csstidy: command not found

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

In Ubuntu csstidy is provided by csstidy package.

csstidy is:

csstidy parses and optimises your CSS code, making it cleaner and more concise. The end result is a smaller CSS file and better written code. It has a variety of option settings giving the user a significant amount of control over the level of file compression and readability. It is not meant to be a CSS validator.

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

sudo apt-get -y install csstidy

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

You can also use apt command to install csstidy.

sudo apt -y install csstidy

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

sudo aptitude install csstidy

Summary

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