unlink: command not found

The unlink command is similar to the rm command, but can only remove one file at a time and cannot remove directories.

Syntax

The syntax of the unlink command is as follows:

$ unlink filename
$ unlink option

Options

unlink command only has 2 optiosn as follows:

  • –help: Print help information and exit.
  • –version: Print version information and exit.

If you encounter the below error while running the unlink command:

unlink: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
OS X brew install coreutils
Debian apt-get install coreutils
Ubuntu apt-get install coreutils
Alpine apk add coreutils
Arch Linux pacman -S coreutils
Kali Linux apt-get install coreutils
CentOS yum install coreutils
Fedora dnf install coreutils
Raspbian apt-get install coreutils
Related Post