日期:2014-05-16  浏览次数:20837 次

写一个最简单的shell程序 cd home/test
新建了一个文件a,里面写了一句

 
cd home/a


保存退出后,在本目录下, ./a 想运行这个shell程序,但失败了

bash: ./a: Permission denied


怎么回事?

------解决方案--------------------
#!/bin/bash
#This script is a test!
echo -n "Date and Time is:"
date
echo "The executable path is:"$PATH
echo "Your name is :`whoami`"
echo -n "Your current directory is:"
pwd
#end