Quiz · 5 questions
🔄 Process Management and Job Control
ps, kill, jobs, tmux, cron, lsof, signals
Level 0Window Tourist
0 XP0/95 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01Difference between SIGTERM and SIGKILL?
Hint
One can be caught and cleaned up; the other cannot.
02Why does a backgrounded job sometimes die when you close the terminal?
Hint
Closing the terminal sends SIGHUP to its jobs by default.
03What does
lsof -i :3000 answer?Hint
It reveals which process is holding the socket on that port.
04Why is macOS's
crontab -l empty even though jobs run on schedule?Hint
Modern macOS apps prefer launchd or in-process schedulers over cron.
05What pattern does
trap 'rm -f $lock' EXIT ensure?Hint
Trap on EXIT runs whether the script ends normally, by signal, or by error.
Comments 0
🔔 Reply notifications (sign in)Sign in — Please sign in to comment.
No comments yet — be the first.