Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用指挥官在 Windows 上做很多工作。我唯一的问题是我无法运行.sh文件。
.sh
上图表示没有关联程序来运行.sh扩展。
我的解决方法是输入bash file.sh但我宁愿不输入basheverytume。
bash file.sh
bash
您可以尝试在cmder windows 10上运行以下命令来执行shell脚本。
sh test.sh
我发现最简单的方法就是打开一个新标签(Ctrl + T)并切换到{bash::mintty as Admin}. 然后你像往常一样运行你的脚本./test.sh
{bash::mintty as Admin}
./test.sh