Exit Red Hat Graphical Boot (boot splash screen) in a vm:
CRTL + END
Remove files after “k” number of days
find /PATH/TO/FILES/* -mtime +$k -exec rm -rf {} \;
systemctl -a | grep -i servicename systemctl status servicename systemctl start servicename
The following will;
sudo iptables -L -n --line-numbers sudo iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT sudo iptables -L -n --line-numbers sudo service iptables save sudo cat /etc/sysconfig/iptables
Server 1 Target 1
[root@server1]# cat /etc/tgt/targets.conf <target iqn.2010-10.net.company:server1.target1> backing-store /dev/sdb vendor_id COMPANY scsi_id server1tgt1 scsi_sn 0101 </target>
Server 2 Target 1
[root@server2]# cat /etc/tgt/targets.conf <target iqn.2010-10.net.company:server2.target1> backing-store /dev/sdb vendor_id COMPANY scsi_id server2tgt1 scsi_sn 0201 </target>
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost