下面哪种方式运行./test.sh脚本时,不需要脚本内的第一行指定解释器信息
A: ./test.sh
B: /bin/sh ./test.sh
C: bin ./test.sh
D: cd ./test.sh
A: ./test.sh
B: /bin/sh ./test.sh
C: bin ./test.sh
D: cd ./test.sh
举一反三
- 调试脚本时,需要用到的命令是( )。 A: sh B: do sh C: shell D: test
- 在编写Shell脚本程序时,第一行应该写的是() A: /bin/sh B: /bin/bash C: #!/bin/sh D: #$/bin/sh
- 下列选项中,哪一项是Shell脚本的开头?( ) A: $/bin/sh B: .#!/bin/sh C: .set shell=/bin/sh D: .use /bin/sh
- 45.在Linux系统中的shell脚本文件一般以什么开头? A: B: !/bin/sh C: $/bin/sh D: use /bin/sh E: set shell=/bin/sh
- 在Centos 系统中的脚本文件一般以什么开头 A: $/bin/sh B: C: !/bin/bash D: use /bin/sh E: set shell=/bin/sh