How to return pid of a last command in Linux - Unix - nixCraft.md 400 B


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]

authors: sedlav

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.

Link