Ressources # in crontab or tmux session - take every hour a track of the memory usage for i in {1..24} ; do echo -n "===================== " ; date ; free -m ; top -b -n1 | head -n 15 ; sleep 3600; done >> /var/log/SYSADM/memory.log & Hardware Logs Health Checks

Compare staffs Compare two jar files: diff -W200 -y <(unzip -vqq file1.jar | awk '{ if ($1 > 0) {printf("%s\t%s\n", $1, $8)}}' | sort -k2) <(unzip -vqq file2.jar | awk '{ if ($1 > 0) {printf("%s\t%s\n", $1, $8)}}' | sort -k2)

Find a process blocking a file with fuser: fuser -m </dir or /files> # Find process blocking/using this directory or files. fuser -cu </dir or /files> # Same as above but add the user fuser -kcu </dir or /files> # Kill process fuser -v -k -HUP -i ./ # Send HUP signal to process # Output will send you <PID + letter>,...