gedit hello.sh
,然后输入
#!/bin/bash echo "Hello world!"
chmod +x hello.sh
./hello.sh
ubuntu中写一个shell脚本的过程
原文:http://www.cnblogs.com/clnchanpin/p/6927030.html