readlink

struct ReadLinkVerb : public VolumeVerb

Implements the readlink CLI verb.

Reads the path pointed to by a symbolic link. A symbolic link stores text, usually a link to another file. This command, when supplied with a path to a file that is a symbolic link, prints this text.

Usage

apfs readlink /dev/rdisk4 --path /sym
apfs readlink /dev/rdisk4 --path /or/any/other/symlink