模块五 Bash脚本编写

bash脚本的基本使用

菜鸟教程:https://www.runoob.com/linux/linux-shell-variable.html

read命令

 

 

read命令使用

 

 脚本的参数传递

 

 

基本运算

 

 

运算2

 运算3

 

 bash与linux命令的组合

bash与目录命令

 

 bash与内存

 

 

 实战部分:

 

 

 默认变量

 参数的传入

运算

 判断

 

 

 

 

有趣的脚本

 

查看进程的基本信息:

 

 

 

 

posted on 2021-05-31 09:19  Cc01  阅读(58)  评论(0编辑  收藏  举报

导航