How to create Mac OS X "Alias" Good file in terminal?

With the command ln ln -s ~/dir dir. alias ln -s ~/dir dir. alias we can create a file or folder.

Mac OSX also provides a way to create an "Alias ​​Kind" file by dragging and dropping one file while holding the "the_command_ +" option key.

How to create such a file in the terminal?

+7
source share
1 answer

While files may look the same in finder, they are very different.

ln -s creates a Unix Symbolic reference file. The Finder Option creates a Mac alias file.

Very good, although a brief description can be found here .

To create an alias in the unix shell, you can use the osascript command and call it, as you would with an apple script.

+5
source

All Articles