使用 Bash 进行简单"Hello World"时出错



我有以下错误

bash: ./helloworld.sh: No such file or directory

执行以下Bash脚本时:

#!/usr/bin/bash
#this is a helloworld programme
echo" hello world"

我检查了这个bash,它是正确的

看起来您试图运行以下内容:echo "hello world",但您编写了echo" hello world",这与"echo hello world"相同。空间很重要。

但看起来你也在运行一个错误的脚本。。。

相关内容

最新更新