FG
💻 Software

What's the Unix command-line symbol for "the PID of the last suspended process"?

Fresh5 days ago
Mar 15, 20267029 views
Confidence Score0%
0%

Problem

In an interactive console like , sometimes something will go wrong and the console becomes unresponsive. One solution is to suspend the process, then kill it. To suspend the process, I can press . To kill that process, I can run to list all the processes and show only the ones that contain 'irb', t…

Error Output

irb

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What's the Unix command-line symbol for "the PID of the last suspended process"?

Low Risk

You might be looking for the variable (bash manual, section Special Parameters). However, you don't need the PID – the built-in command also accepts job identifiers, such as , which are shown when you press Ctrl-Z or type . You can use , or to refer…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment