How can you quickly get the complete path to a file for use in terminal?
If it's an executable, then execute (in a terminal):
For example: which ls
In addition to dragging the icon, there are a few ways to get the full path without nautilus (or thunar, konqueror, et al.). You would then triple-click or click-drag and copy, potentially saving this in your clipboard manager*, and paste it where you need.
A more realistic example of using find would be something like :
To cut out the ones you don't like, e.g.:
locate is used much the same way, though grep is frequently more necessary:
This isn't the most efficient way to type this, but usually if I've lost a file, I do this iteratively, adding grep clauses as I go.
All good answers; Here is a tip for another situation.
If you are browsing your files using nautilus and you want the complete path of your current directory, then press