OS X,Common Problems
Drag and Drop with the Command Line?
Ever need to perform an operation on some files or folders in the Terminal, but hate typing the names of the items? Try dragging items into the terminal window from the Finder. For example, to change the ownership of a home directory to another user (called username in this example), in the terminal, type: sudo chown -R username (then a space), then drag the home directory into the terminal window - it will insert the full path, /Users/username - then press return to execute the command (note that sudo will require your password, and you must be an admin user to be allowed to use sudo).






