Published on

Today I Learnt: Print environment variables

Authors
  • Mehdi Akiki avatar
    Name
    Mehdi Akiki
    Twitter

Print all environment variables:

printenv
env

Show a specific variable:

echo "$PATH"

Tip: use env -i to run a command with a clean environment.

title: "Today I Learnt: Print environment variables with env" date: "2025-09-16" tags: ["bash", "til"] draft: false summary: "Show environment variables."


Print environment variables:

env

I build and scale reliable production systems. Open to full-time and freelance work with U.S.-based teams that value ownership and execution.

Got something in mind?

Book a Discovery Call