mk90.commands
Command ps
Display task slots, states, names and application counters.
Synopsis
psOrdinary invocation: foreground child, PID 3; the shell waits. Allowed as a pipe producer.
Parameters
This command has no documented parameters.
Description
Prints PID S NOME PASSI and one row for each non-free slot. NOME means “name”; PASSI means “steps”. The counter belongs to the application and is not CPU time.
While standalone PS runs, PID 0 normally appears as W (waiting for its child) and PID 3 as R with name ps. Finished background slots remain visible until reused. The scheduler also has I/O waiting states for pipe endpoints.
Examples
run count 5
ps
ps | lessLimits and side effects
- No options or process tree. PID numbers are reusable slot indexes, not permanent job identities. For the full state table see the multiprogramming chapter.
Status and diagnostics
Success is status 0. Relevant status codes: 8. See the diagnostic reference.
See also
run · wait · kill · Shell syntax