Personal Notes or My Attempts
Table of contents
- Setting up
- Setting up maven in ubuntu
- Install maven using
apt - Using crontab to purge RAM and disk cache routinely (MacOS version)
- Check MacOS sudo crontab log with this command:
- sudo log show –predicate ‘process == “cron”’ –info
- Clear Disk Cache (sudo purge)
- Clear RAM Cache (every hour)
- Extra: You can use this bash script to check the logs for running your crontabs
Setting up
Setting up maven in ubuntu
Install maven using
aptsudo apt update && sudo apt install mavenEnter sudo password, Type Y if needed
Please check with
mvn -vafter installationSince this mvn comes with jdk 11, we need to update to jdk 22 Try
wget https://download.oracle.com/java/22/latest/jdk-22_linux-x64_bin.debThen try sudo apt install jdk22
sudo apt install ./jdk-22_linux-x64_bin.debCheck with
java -versiontaht your java version is now on 22.0.1!- Please reun
mvn clean install -Dmaven.test.skip=true
Using crontab to purge RAM and disk cache routinely (MacOS version)
sudo crontab -lcheck what crontab is runningsudo crontab -eand add the following lines- ```bash
Check MacOS sudo crontab log with this command:
sudo log show –predicate ‘process == “cron”’ –info
Clear Disk Cache (sudo purge)
- sudo purge
Clear RAM Cache (every hour)
0 * * * * rm -rf ~/Lib/Caches/* ```
- ```bash
Extra: You can use this bash script to check the logs for running your crontabs
sudo log show --predicate 'process == "cron"' --info