unsort command not found

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

Introduction

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

unsort: command not found

or when using sudo you get the following error message

sudo: unsort: command not found

Solutions to unsort: command not found

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

In Ubuntu unsort is provided by unsort package.

unsort is:

This program reorders the lines in its input with no regard to the actual contents. Two permutation algorithms are available: randomization based on a good PRNG (the Mersenne Twister algorithm) and “shuffling”, which permutes the lines in such a way that they’re spread more or less evenly in the output. This mode is primarily intended for music playlists.

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

sudo apt-get -y install unsort

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

You can also use apt command to install unsort.

sudo apt -y install unsort

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

sudo aptitude install unsort

Summary

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