Drag and Drop Paths

Device

  • Terminal

How

  1. Start typing a command that needs a file path
  2. Drag a file or folder from Finder into the terminal window
  3. The full path appears at your cursor position
  4. Press Enter to run the command

Official documentation · Apple Support

Try this

Type ls in your terminal, then drag any file or folder from Finder into the terminal. The path appears automatically. Press Enter to list that location.

Why it works

Zero typing, zero mistakes.

Sources
Open full demonstration ↗