且构网

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

“找不到命令";运行shell脚本时

更新时间:2022-12-10 10:51:47

也许那里有一个(不可见的)字符,不应存在.尝试在将要运行的环境(例如Linux)中从头开始再次键入它,或使用此命令 od -c/folder/script.sh 来显示那些令人讨厌的字符.

Maybe there is a (invisible) character there that should not be there. Try typing it again from scratch in the environment that it will run (ex: Linux) or use this command od -c /folder/script.sh to reveal those pesky characters.