How to see caching stats etc.
show hitratio rate
Hitrate ratio: 10 100 1000 Hitrate avg: 0.3373 0.3012 0.3400
This Means the last 10 seconds we have a hitrate of 33.73% and the last 100 seconds only 30.12%...
I am trying to use tmux more than screen, but a cheat sheet could be usefull.
detach from window
connect to session
tmux at -t
tmux new -s "session_name" "co...
Once in a while i want to start a bash script and make sure it one at a time. So searching for solution for creating a lock file in bash, you want to have a solution that doesn't create a race condition.
Start defining which lockfile you want to use
Once in a while i need to debug a bash script that i wrote, but i need to search how to get the line number of debug to a file, so easier for me to put it in mij blog, maybe it will help somebody else also.
Add line numbers