Modifying this control will update this page automatically
Drag files into a Terminal window to specify paths on Mac
You can save time by dragging an item from the Finder to the Terminal window, rather than typing the path. The item’s absolute path appears on the command line.
In the Terminal app on your Mac, do any of the following:
To run an executable file, drag the file to the Terminal window, then press Return.
To enter the path of a file or folder, drag the file or folder to the Terminal window.
To use a snippet of text saved as a clipping in the Finder, press the Command key, then drag the clipping to the Terminal window.
Dragging a clipping may add the escape equivalent of certain special text characters. If you don’t want to include those characters, hold down the Command key while you drag the clipping.