C.W.K.
Stream
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.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.