构建永久的yum仓库
[]#mkdir /mydvd
[]#mount /dev/cdrom /mydvd
[]#rm -rf /etc/yum.repos.d/*
[]#vim /etc/yum.repos.d/mydvd.repo
[dc]
name=centos7
baseurl=file:///mydvd
enabled=1
gpgcheck=0
[]#yum -y install xorg-x11-apps
[]#rpm -q xorg-x11-apps
[]#blkid /dev/cdrom
[]#vim /etc/fstab
/dev/cdrom /mydvd iso9660 defaults 0 0
[]#reboot
[]#ifconfig | head -2
自定义yum仓库
将自己准备的众多软件包,制作成一个软件仓库
(1)准备众多的软件包(rpm包)用源码包编译完的tools中的other
[]#ls /usr/local/tools/other
(2)生成仓库数据文件
[]#createrepo /usr/local/tools/other
[]#ls /usr/lcaol/tools/other
[]#ls /usr/lcaol/tools/other/repodate
(3)写客户端配置文件
[]#vim /etc/yum.repos.d/mydvd.repo
...
[tc]
name=myrpm
baseurl=file:///usr/local/tools/other
enabled=1
gpgcheck=0
[]#yum repolist
[]#ls /usr/local/tools/other
通用分析工具
tail、tailf、less、grep等文本浏览/检索命令
awk 、sed等格式化过滤工具
暴力破解
按e——>linux16的末尾写rd.break console=tty0——>crrl+x
chroot /sysroot
mount -o remount,rw /
echo redhat | passwd --stdin root
vim /etc/selinux/conf
touch /.autorelabel #如果是强制模式才需要重设selinux策略(其他模式不需要做此操作)
reboot -f