Linuxshell实战之简单介绍

    xiaoxiao2021-03-25  78

    Linuxshell实战简单介绍

    1.设置vim的编辑状态:     临时性设置     永久设置(vimrc文件):对所有用户都配置/etc/vimrc  ,对某个用户/home/.vimrc。 1》语法高亮:    syntax  on 2》显示行号: set number 3》自动缩进: set autoindent set cindent 4》自动加入头文件: shell的高亮显示: echo  -e  终端颜色+显示内容 + 结束后的颜色

    echo  -e  "\e[1;30m hello linux  \e[1;0m"

    echo  -e  "\e[1;30m hello linux  \"$(tput sgr0)

    $(tput sgr0)将颜色重置

    Shell中的关联数组 普通数组:只能使用整数作为数组索引 关联数组:可以使用字符串作为数组索引 声明关联数组变量:#declare -A ass_array1 对关联数组赋值:数组名[索引]=变量值,例#ass_array1[index1]=pear 实战: 执行:   
    转载请注明原文地址: https://ju.6miu.com/read-39369.html

    最新回复(0)