Published on: Mon May 04 2026
# freeze with STOP, PID is process id
kill -STOP <PID>
# unfreeze
kill -CONT <PID>
How to get PID?
pgrep app_name
or
pidof app_name
doesn’t survive reboot, if you shut down, process is gone.
I use fish shell, for it I can simply use this command to create aliases:
alias --save freeze='kill -STOP'
alias --save unfreeze='kill -CONT'
Now usage is easier:
freeze (pidof app_name)
unfreeze (pidof app_name)
Haven’t set it up yet