摘要: 1、自建yum仓库,分别为网络源和本地源 答:在/etc/yum.repo.d/目录中创建后缀为repo的文件,在此之前启动autofs服务。 systemctl start autofs systemctl enable autofs vim /etc/yum.repo.d/centos7.rep 阅读全文
posted @ 2020-07-20 01:41 狼牙山 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、查找/etc目录下大于1M且类型为普通文件的所有文件 答: find /etc -size +1M -type f -name "*" -ls 2、打包/etc/目录下面所有conf结尾的文件,压缩包名称为当天的时间,并拷贝到/usr/local/src目录备份。 答: find /etc/ - 阅读全文
posted @ 2020-07-13 09:23 狼牙山 阅读(90) 评论(0) 推荐(0) 编辑