查看当前系统shell运行类型
[vagrant@localhost ssh]$ echo $BASH /bin/bash
第一个shell脚本
[vagrant@localhost ssh]$ vi first_shell.sh #!/bin/bash echo ‘hello world‘ [vagrant@localhost ssh]$ ./first_shell.sh hello world
[vagrant@localhost ssh]$ /bin/bash first_shell.sh
hello world
原文:https://www.cnblogs.com/ksy-c/p/13191334.html