What is DevRel? | What is Developer Relations ?
A to Z Full Forms and Acronyms

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

Jun 24, 2021 LinuxShellScript, 414 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
Cookies.

By using this website, you automatically accept that we use cookies. What for?

Understood