使用 Bash 出现简单的“Hello World”错误

时间:2020-12-29 07:10:19

标签: linux shell ubuntu-18.04

我有以下错误

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

在执行以下 Bash 脚本时:

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

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

1 个答案:

答案 0 :(得分:0)

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

但看起来你也运行了错误的脚本......