gedit hello.sh
,然后输入
#!/bin/bash
echo "Hello world!"
chmod +x hello.sh
./hello.sh
gedit hello.sh
,然后输入
#!/bin/bash
echo "Hello world!"
chmod +x hello.sh
./hello.sh
转载于:https://www.cnblogs.com/clnchanpin/p/6927030.html