Kill process tree linux
Send SIGTERM to the entire process group
kill -TERM -$(pgrep -f 'my-app')
more linux
all 133 commands →
Change process priority
renice -n 10 -p <pid>
Limit process resources (cgroup)
systemd-run --scope -p MemoryMax=512M -p CPUQuota=50% -- ./heavy.sh
Query journald with time range
journalctl --since '2024-01-15 10:00' --until '2024-01-15 10:30' -u nginx
Export journald to JSON
journalctl -u <service> -o json | jq '{ts: .REALTIME_TIMESTAMP, msg: .MESSAGE}'
Show NTP sync status
timedatectl status && chronyc tracking