知识点

for循环
1.for循环语法结构
for 变量名 in 取值列表
do
命令序列
Done
2.while循环语法结构
while 【条件】
do
命令序列
Done
3.case语法结构
case 变量值 in
模式1
;;
模式2
;;
*)
默认命令序列
esac
使用For循环创建用户
创建取值列表
shell 脚本应用(三)

编写脚本
shell 脚本应用(三)

执行脚本
shell 脚本应用(三)

删除用户脚本
shell 脚本应用(三)

执行
shell 脚本应用(三)

While循环创建用户名字以stu开头数字随机

编写脚本
shell 脚本应用(三)

执行 创建成功
shell 脚本应用(三)

删除用户脚本
shell 脚本应用(三)

执行
shell 脚本应用(三)

case编写控制vsftpd脚本
shell 脚本应用(三)

执行
shell 脚本应用(三)

使用for循环测试网络连通性
编写脚本
shell 脚本应用(三)

执行

shell 脚本应用(三)

课后实验
shell 脚本应用(三)

安装ftp
shell 脚本应用(三)

编写脚本getarp.sh脚本
shell 脚本应用(三)

执行
shell 脚本应用(三)

编写scanhost脚本
shell 脚本应用(三)

执行
shell 脚本应用(三)

实验完成

相关文章: