How do you run bash script as a command?

后端 未结 4 951
离开以前
离开以前 2021-01-22 10:53

I have a bash script, which I use for configuration of different parameters in text files in my wireless access media server.

The script is located in one directory, and

4条回答
  •  再見小時候
    2021-01-22 11:10

    You can place a softlink to the script under /usr/local/bin (Should be in $PATH like John said)

    ln -s /path/to/script /usr/local/bin/scriptname
    

    This should do the trick.

提交回复
热议问题