第五章 Shell脚本程序初步:本章主要介绍在Linux中如何组合多个命令形成Shell程序,并用来解决实际问题。5.1shell脚本入门:包括两部分:变量,Shell脚本示例
5.2条件判断式及判断符:test判断式和[]判断式
5.3条件结构化命令:if-else和case命令
5.4循环结构化命令:介绍for语句和while语句
[单选题]在我们所学的 shell 脚本中,其第一行通常是(  )。
# /bin/bash
!/bin/bash
#!/bin/bash
#!bin/bash
答案:#!/bin/bash
[单选题]使文件 practice060102 获得执行权限的正确命令是(  )。
chmod x practice060102
chmod –x practice060102
chmod practice060102
chmod +x practice060102[单选题]通过(  )命令即可执行脚本文件 practice060103。
./practice060103
/. practice060103
../practice060103
do practice060103[单选题]调试脚本时,需要用到的命令是(  )。
sh
test
shell
do sh[单选题]我们可通过(  )命令,在 shell 中显示文件内容。
read
cat
show
move[单选题]下列 case 语句中,正确的是(  )。



[单选题]下列 if 语句中,正确的是(  )。



温馨提示支付 ¥1.00 元后可查看付费内容,请先翻页预览!
点赞(0) dxwkbang
返回
顶部