Skip to content
Darryl Dias

Darryl Dias

3D Artist and Cloud Computing Specialist

  • Home
  • Linux
    • Fedora
    • Debian
    • Ubuntu
    • CentOS
    • OpenSUSE/SLE
  • Applications
    • Neovim
    • Blender
    • Maya
    • Houdini
  • MacOS
  • Windows
  • FreeBSD
  • Single Board
    • Raspberry Pi
  • PHP
    • WordPress
  • Programming
    • JavaScript
    • Deno
  • Demo Reel
  • Portfolio
  • The Awesome List
  • Store
  • About
  • Contact

What is $$ in Bash?

December 25, 2020June 22, 2020 by Darryl Dias

$$ is an internal variable, it stores the process ID of the script itself or the current bash instance.

Here is an example use case

echo $$Code language: PHP (php)

The output prompted.

darryl@Darryl-PC$ echo $$
8Code language: CSS (css)

 

Categories Articles Tags bash, linux, shell, tutorial
How to install Rust on Fedora Linux
Why I stopped using Jetpack

Search

Advertise here
DigitalOcean Referral Badge
  • Articles
  • Blender
  • FreeBSD
  • Houdini
  • Linux
  • MacOS
  • Maya
  • Neovim
  • Programming
  • Raspberry Pi
  • RenderMan
  • Tutorials
  • Unix
  • Windows
Advertise here
© 2025 Darryl Dias • Built with GeneratePress