How can I cd to an alias directory in the Mac OSX terminal

前端 未结 7 508
迷失自我
迷失自我 2021-01-29 23:49

Is there a way to get into an alias directory from shell with the command \"cd\" ? It always returns that \"htdocs\" isn\'t a directory.

Edit: I made the shortcut with t

7条回答
  •  时光说笑
    2021-01-30 00:28

    you can make symbolic link to it.

    ln -s EXISTING_PATH LINK_NAME
    

    e.g.

    ln -s ~/Documents/books ~/Desktop/
    

    Reference

    Enter into a directory through an alias in Mac OS X terminal

提交回复
热议问题