破密:
e-->linux16 rd.break Ctrl+x-->mount -o remount,rw /sysroot-->chroot /sysroot-->echo flectrag|passwd --stdin root-->touch /.autorelabel-->Ctrl+D-->reboot
修改hostname和ip地址
nm-connector-editor
IPADDR0-->PREFIX0-->GATEWAY0-->DNS1-->DOMAIN
chattr +i /etc/resolv.conf
hostnamectl set-hostname example.com
yum.repos.d/rhel.repo
[yumserver]
name=yumserver
baseurl=http:///
gpgcheck=0
enabled=1
lvm
ext4: 增大 lvextend -L 300M /dev/vg1/lv1 resize2fs /dev/vg1/lv1
xfs: xfs_growfs /mountpoint
减小 umount /dev/vg1/lv1 e2fsck -f /dev/vg1/lv1 resize2fs /dev/vg1/lv1 100M
lvreduce -L 100M /dev/vg1/lv1 mount -a
resize2fs /dev/vg1/lv1
groupadd adminuser
useradd natasha -G adminuser
useradd harry -G adminuser
useradd sarah -s /sbin/nologinb
passwd natasha harry sarah
cp /etc/fstab /var/tmpfsta
setfacl -m u:natasha:rw /var/tmp/fstab
setfacl -m u:harry:- /var/tmp/fstab
crontab -e -u natasha
23 14 * * * /bin/echo hiya
mkdir /home/admins
chgrp adminuser /home/admins
chmod 2770 /home/admins
ftp get rpm vi /etc/grub.conf修改默认启动内核
yum install authconfig-gtk
vim /etc/chrony.conf
systemctl restart chronyd.service (enable)
useradd -u 1234 alex
fdisk /dev/vdb n-->e-->E-->E ;fdisk /dev/vdb n-->l-->E-->+500M-->E-->t-->82-->w
part -a /dev/vdb
mkswap /dev/vdb6
UUID
vim /etc/fstab
UUID swap swap defaults 0 0
swapon -a
mkdir /root/findfiles
find / -user ira -exec cp {} /root/findfiles \;
grep ‘semisc‘ /usr/share/dict/words /root/wordlist
本文出自 “血爪哇” 博客,请务必保留此出处http://sunrain990.blog.51cto.com/3700585/1564843
原文地址:http://sunrain990.blog.51cto.com/3700585/1564843