title: How to return pid of a last command in Linux - Unix - nixCraft date: 2019-11-20 16:57:03 categories: [cli] tags: [jobs,bg, pid]
This page explains how to return the PID of a last executed command in Linux, macOS, *BSD family of oses or Unix-like system when using bash/ksh/sh.