且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何在Cygwin中运行的bash shell脚本?

更新时间:2023-10-21 09:06:28

该文件将不得不在你的$ PATH为您的系统找到它,执行它。否则,该文件的整个路径必须被指定。

The file would have to be on your $PATH for your system to find it and execute it. Otherwise, the entire path to the file would have to be specified.

要显示你的路径尝试:

echo $PATH

屠夫位于

要运行脚本,无论是把它放在这些位置之一(例如/ usr / local / bin中),或转到该目录,运行 ./屠夫