Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Useful Linux Commands

Show top 10 CPU consuming processes

ps -eo pcpu,pid,user,args|sort -k 1 -nr|head -10

Show process command line

cat /proc/_pid_/cmdline|xargs -0

Reload DNS resolver

sudo killall -USR2 systemd-resolved