gpt4 book ai didi

powershell - Powershell Core-如何使Linux文件类型可执行

转载 作者:行者123 更新时间:2023-12-02 22:51:21 24 4
gpt4 key购买 nike

在Linux上运行时,是否具有与以下bash命令等效的powershell核心:

sudo chmod +x myexec

我想使该文件类型可执行。使用bash这样做很简单,但如果可能的话,我宁愿使用powershell。

到目前为止,我正在使用以下命令:
bash -c "chmod +x myexec"

最佳答案

可执行标志是linux / unix术语。
...在Windows上不相关。

坚持使用当前从PS脚本内部调用bash命令的解决方案

关于powershell - Powershell Core-如何使Linux文件类型可执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55668884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com