To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
Backup of all important data before proceeding! Changes to the partition table always bear the risk of complete data loss.
by dev
To delete file
rm filename.txt
To delete files
rm filename1.txt filename2.php filename3.docx
To delete folder
rm foldername/
To delete all files with .html extension
rm *.html