readlink
Follow symlinks and get symlink information. More information: <https://www.gnu.org/software/coreutils/readlink>.
Install
- All systems
-
curl cmd.cat/readlink.sh
- 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 - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install coreutils - OS X
-
brew install coreutils - Raspbian
-
apt-get install coreutils - Docker
-
docker run cmd.cat/readlink readlinkpowered by Commando
Follow symlinks and get symlink information. More information: <https://www.gnu.org/software/coreutils/readlink>.
-
Get the actual file to which the symlink points:
readlink path/to/file -
Get the absolute path to a file:
readlink -f path/to/file
© tl;dr; authors and contributors