shell之cat实用技巧

技巧1:cat的多行输出 一般用于脚本提示帮助或选择菜单 [root@localhost ~]# cat << EOF # EOF为自定义结束符(可以是其它字符,如EOO),需要在结尾输入EOF表示输出内容结束 cat多行输出第一行 c...

yum的特殊用法

1、同步网络yum源到本地 配置yum源 [root@qunniao ~]# wget -O /etc/yum.repos.d/Centos-aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo[root@qunniao ~]# wget -O /etc/yum.repos.d/epel-7....