find /[FOLDER_NAME]/* -mtime +[OLDER_THAN_DAYS] -exec rm -rf {} \;
Example deletes all files and folders in tmp folder that are older than 180 days: find /tmp/* -mtime +180 -exec rm -rf {} \;
You can see a lot of good information for debugging and fixing errors on your Ubuntu server with journalctl and dmesg
journalctl --since "1 days ago"
journalctl --since "10 hours ago"
journalctl --since "12 hours ago" -p 3 -x --utc --no-pager
dmesg | less
dmesg -H --time-format iso| less
Resources:
https://unix.stackexchange.com/questions/50098/linux-network-troublesho…
Wordpress runs it's cron job automatically approximately every 10 minutes. Sometimes it is blocked by .htaccess or other server configuration. To avoid issues, it might be a good idea to run from the server crontab itself.
References:
https://kinsta.com/knowledgebase/disable-wp-cron/
https://wpbeaches.com/set-up-wordpress-wp-cron-php-to-run-manually/
Example bash on argument 1. It checks if HTTPS is up and if the domain-name is on the site. Most sites have the domain name on the front page somewhere: /usr/local/nagios/libexec/check_http -H $1 --ssl --onredirect=follow --string "$1"
If log file you can run grep on the following keywords: grep -i -e "critical" -e "invalid" -e "warning" [LOGFILE.log]
Keywords: check_http
sudo systemctl stop apport
sudo systemctl stop whoopsie
sudo systemctl disable apport
sudo systemctl disable whoopsie
sudo aptitude purge apport whoopsie
Source: https://askubuntu.com/questions/1245078/woopsie-upload-all-process-cons…
A nice little guide: https://tecadmin.net/run-shell-script-as-systemd-service/
Possible fix:
Delete the cache: ~/.config/skypeforlinux/Cache/
Skype start command: nice -n 19 rm -r ~/.config/skypeforlinux/Cache/* ; nice -n 19 /usr/bin/skypeforlinux %U skypeforlinux --disable-accelerated-video-decode=true
Skype start command vanilla: /usr/bin/skypeforlinux %U