多个命令执行用分号 date ; who 创建shell脚本文件 开头是 #!/bin/bash 新建的脚本文件记得赋予执行权限 chmod u+x test1.sh 这里 u for user g for group o for other a for all , default is a
date ; who
#!/bin/bash
chmod u+x test1.sh