symlinks command not found

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

Introduction

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

symlinks: command not found

or when using sudo you get the following error message

sudo: symlinks: command not found

In Ubuntu symlinks is provided by symlinks package.

symlinks is:

Symlinks scans directories for symbolic links and lists them on stdout. Each link is prefixed with a classification of relative, absolute, dangling, messy, lengthy or other_fs.

Symlinks can also convert absolute links (within the same filesystem) to relative links and can delete messy and dangling links.

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

sudo apt-get -y install symlinks

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

You can also use apt command to install symlinks.

sudo apt -y install symlinks

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

sudo aptitude install symlinks

Summary

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