摘要:
一、变量介绍 将一些数据需要临时存放在内存中,以待后续使用时快速读出。 二、变量分类 1、本地变量: 用户私有变量,只有本用户可以使用,保存在家目录下的.bash_profile、.bashrc文件中 [root@localhost test20210724]# ls -a ~/.bash* /ro 阅读全文
posted @ 2021-07-24 23:15
Mrwhite86
阅读(147)
评论(0)
推荐(0)
摘要:
编辑以下的文件: vim /etc/vimrc 在脚本的结尾添加如下内容: autocmd BufNewFile *.sh,*.script exec ":call WESTOS()" function WESTOS() call append(0,"######################## 阅读全文
posted @ 2021-07-24 20:41
Mrwhite86
阅读(213)
评论(2)
推荐(0)
摘要:
一、read命令 1、概念: 默认接受键盘的输入,回车符代表输入结束 2、read命令选项 -p:打印信息 -t:限定时间 -s:不回显 -n:输入字符个数 3、举例说明 (1)模拟登录 [root@localhost test20210724]# vi read_command_study.sh 阅读全文
posted @ 2021-07-24 15:08
Mrwhite86
阅读(405)
评论(0)
推荐(0)

浙公网安备 33010602011771号