经过一番测试和查找,
6@localhost bin$ find / -name "hello.sh" 2>/dev/null
/home/6/bin/hello.sh
6@localhost bin$ ls hello.sh
ls: 无法访问hello.sh: 没有那个文件或目录,为什么在/bin文件下却不能打开,
6@localhost bin$ cd /home/6/bin
6@localhost bin$ ls hello.sh
通过find寻找文件路径,然后打开,就可以了,搞了半天居然是路径出问题了。