Delete log files and historical records, and stop the ECS.
- Run the following commands to delete redundant key files:
echo > /$path/$to/$root/.ssh/authorized_keys
An example command is echo > /root/.ssh/authorized_keys.
echo > /$path/$to/$none-root/.ssh/authorized_keys
An example command is echo > /home/linux/.ssh/authorized_keys.
- Run the following command to clear log files in the /var/log directory:
rm -rf /var/log/*
- Run the following commands to delete historical records:
echo > /root/.bash_history
history -c