Back
training

Unix/Linux Shell Scripting Training: Processes, Signals and Automation

Mehmet Yasin Özkasapoğlu

In October 2026 I delivered a Unix/Linux Shell Scripting course. On the surface, scripting looks like "putting commands in a file" — but writing a script that actually holds up means understanding what the system is doing underneath. So I built the training to connect operating-system fundamentals and scripting in the same place.

Process states (STAT) in ps output: R, S, D, Z

A few of the topics we worked through in this part (M1 · Process, thread, scheduling and signal):

  • Process states: the STAT codes in ps output — R (running/runnable), S (sleeping), D (uninterruptible sleep) and Z (zombie) — and the transitions between them. For example, a process stuck in D cannot be killed and holds a slot in the PID table; knowing that in the field saves time.
  • Signals: sending a signal to a process, trapping it, and responding to it properly from inside a script.
  • Scheduling and priority: the nice/priority model and how a process relates to the CPU.

On top of that we put the scripting side: turning work that is otherwise done by hand, over and over, into a reliable, repeatable and loggable script. The training ran hands-on in a real Linux environment (Rocky Linux 9), with participants running the commands and scripts in their own terminals.

I increasingly run the hands-on part through browser-based labs, the same approach I am building into my own DevSecOps lab platform.