2

macOS Catalina introduces "firmlinks" to the APFS filesystem. Is there a way via a CLI tool to determine whether /Users is a firmlink and where it is firmlinking to? I'm looking for something similar to the readlink command for symlinks.

New contributor
michaelt is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1

I'm also looking for this. In the meantime, I've resorted to using comparing the results of pwd -P (show physical path of process working directory) with that of df ., e.g.:

# cd /Users ; pwd -P ; df .; cd - >/dev/null
/Users
Filesystem   512-blocks       Used Available Capacity iused      ifree %iused  Mounted on
/dev/disk1s1 1953595632 1384119832 545065168    72% 1287392 9766690768    0%   /System/Volumes/Data

(The final cd - switches back to the original directory, and prints out the directory path, hence the redirection to /dev/null.)

Note how the output of pwd -P says /Users, while df says it is mounted on /System/Volumes/Data.

Your Answer

michaelt is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.