linux下shell编程时出现command not found
我是linux的新手,前几天装了redhat的虚拟机,没有改动任何的配置文件,也没有装什么新的软件。今天在学shell编程的时候,执行文件总是出现command not found的错误提示。以下是课件上的代码:
- C/C++ code
#!/bin/sh#print hello world in the console windowa = "hello world"echo $a
希望大家能帮个忙。
[解决办法]
- C/C++ code
#!/bin/sh#print hello world in the console windowa="hello world"echo $a