Processos & Serviços
Listando processos, sinais, systemd, cron e monitoramento no Linux.
Listando Processos com ps
ps aux, ps -ef, ps -eo pid,comm,%cpu,%mem, filtrando com grep, árvore de processos com ps --forest, pgrep.
Monitoramento com top e htop
top, entendendo load average, %us %sy %wa, ordenar por CPU/MEM, htop, atalhos úteis.
Sinais: kill, SIGTERM e SIGKILL
kill PID, kill -9, kill -l, SIGTERM vs SIGKILL vs SIGHUP, killall, pkill, trap em scripts.
systemd: Gerenciando Serviços
systemctl start/stop/restart/status, enable/disable, systemctl list-units, journalctl -u, criando um service file.
Agendamento com cron e crontab
crontab -e, crontab -l, sintaxe dos 5 campos, @reboot, /etc/cron.d/, troubleshooting.