What's the difference between ln -s and alias?

后端 未结 7 2049
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 09:42

I just found a workaround for a problem I was having with the subl command for Sublime Text 3 when the MacPorts version of python is installed. The instructions

7条回答
  •  暖寄归人
    2020-12-23 10:21

    I think you may be missing something in your alias command above -- it should have the form alias mumble="substitution" and will cause any command you type beginning with mumble to be replaced by substitution. So if what you entered in your profile was alias subl="/Applications/path//to/subl" then whenever you type subl at the start of a command, it is replaced by the full path.

    ln works by creating a reference in the file system from one thing to another.

    The link you provide above suggests that ln will not work with the version of Python provided in MacPorts.

提交回复
热议问题