Bash file shows “ln: command not found”

前端 未结 2 1636
失恋的感觉
失恋的感觉 2021-01-27 08:02

I\'m trying to create a bash script to setup my development environment. The script is running as root but I get the error line 11: ln: command not found



        
相关标签:
2条回答
  • 2021-01-27 08:19

    PATH tells the shell where to look for commands. In your case, it looks for ln somewhere in /etc and predictably doesn't find it there.

    You should use a different name.

    0 讨论(0)
  • 2021-01-27 08:35
    PATH=...
    

    Congratulations, you've clobbered how the shell finds commands. Don't do that.

    0 讨论(0)
提交回复
热议问题