So I've made a basic .sh file to clear my cache using the
sync; echo < 3 /proc/sys/vm/drop_caches
command. Then I saved it to my username in
/home/marc
Then I came across the crontab so I decided to use this sh file with crontab to run every hour as I noticed that my RAM is eaten up extremely quickly on my laptop. using crontab -e, I edited the file to this:
0 * * * * /root/clearcache.sh
My question is, have I done everything right? Have I editied the crontab file correctly and if so, how can I check that this job runs as it should do?