Loading, please wait...

A to Z Full Forms and Acronyms

How to print the current process id in Linux Shell Script | Linux Shell Script

Mar 08, 2022 LinuxShellScript, 2585 Views
How to print the current process id in Linux Shell Script | Linux Shell Script

How to print the current process id in Linux Shell Script | Linux Shell Script

We will use the "$$" variable to print current process identifiers on the console screen.

 

#!/bin/bash

echo "Current process identifier: $$"
A to Z Full Forms and Acronyms