When a config file, a script or a chat asks for the full path of a file, typing it is error-prone. Finder will copy it for you, but the menu item hides until you hold a key.
Control-click (or right-click) the file or folder, then hold Option. Copy changes into Copy as Pathname.
Control-click the item
hold Option
Copy "report.pdf" as Pathname
Paste it anywhere with Command-V and you get the full path, such as /Users/you/Documents/report.pdf. Apple mentions this in its Terminal guide as the quick way to copy a pathname.
There’s a second route via the path bar. Show it with View > Show Path Bar, then Control-click a folder in that bar and choose to copy it as pathname. Apple’s Get Info page describes that one.
I’d use it all the time with Terminal: cd , Command-V, Return. Or for a docker compose file that needs a full host path.
Watch the spaces. The copied path is plain text without quotes or backslashes, so a path like /Volumes/My Disk/file breaks in a shell command. Put quotes around it after pasting. And a path on an external drive is only valid while that drive is mounted under the same name.
Further reading: Specify files and folders in Terminal on Mac (Apple), Get file, folder, and disk information on Mac (Apple)