The path of copying the current directory on Windows has a particularly convenient way, only need to click the path bar with the mouse, it will automatically become like "D:\Downloads\tmp" such as the path, if you want to copy the file path, only need to add directory path and file name together, Linux is also very convenient,readlink -f yourfilewill print out the absolute path of the file, although the Mac can also be used under the command line Greadlink (Mac on the Readlink and Linux features are not the same, greadlink meaning is GNU's readlink, Consistent with Readlink on Linux), but this is obviously not the best solution, after all, Mac is the best combination of graphics and command line, the preferred solution in the graphical interface to solve the problem
Search the next Baidu, roughly to the following two kinds of 3 programs Copy to clipboard
1. Right click on the file, select Show profile can see the directory of the file, this and the Windows on the click on the path blue results consistent, but not easy to use, because this only shows the path of the directory where the file, the absolute path of the file will also need to add a filename
2. Drag the file into the browser, the file path will be displayed in the Address bar
3. Open the text terminal program, drag the file in, the path will be automatically printed out
Each of the above methods have advantages and disadvantages, I expect the best solution should be the right mouse button click on the file, menu directly appearCopy pathoptions, click the file path is copied to the Clipboard, is not a one go feeling, in fact, the MAC system itself for us to provide such a way, just need a little bit of skill, We need to use automator here.
Open the Automator in the Application folder, select the File menu, create a new service, as follows
In the left Action Bar Copy to clipboard, locate the action and drag to the right, as follows
There are two places to modify, "services" received selected as files or folders, located in Finder,cmd+ssaved, namedCopy path, finished!
How to use it? In the Finder to find a random file, click the right mouse button, see if the service options appearCopy path, the following
[MAC] How to quickly copy file paths under Mac OS x