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. More information: <https://www.gnu.org/software/coreutils/unlink>.

Install

All systems
curl cmd.cat/unlink.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/unlink unlink powered by Commando

Remove a link to a file from the filesystem. The file contents is lost if the link is the last one to the file. More information: <https://www.gnu.org/software/coreutils/unlink>.

  • Remove the specified file if it is the last link:
    unlink path/to/file

© tl;dr; authors and contributors