Install Unlink On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Unlink On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

unlink

Remove a link to a file from the filesystem.
The file contents is lost if the link is the last one to the file.

Maintainer: Michael Stone



Section: utils

Install unlink

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Remove a link to a file from the filesystem. The file contents is lost if the link is the last one to the file.

How to use unlink?

Below are few example commands for unlink that you can use in the terminal.

Remove the specified file if it is the last link:
unlink path/to/fileClick to copy
To install the latest version of unlink in your favorite operating system just copy the unlink installation command from above and paste it into terminal. It will download and install the latest version of unlink 2026 package in your OS.