---
title: "Discussion on \"Linux Commands: printenv\" | Hashnode"
description: "Discussion on \"Linux Commands: printenv\". printenv is used to print out the environment variables. Environment variables are a common form of setting global values across a terminal session. Environment variables can be set by the systems, automation scripts, or by the user.\nYou can print yo..."
url: "https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Linux Commands: printenv](https://rambling.umesh.dev/linux-commands-printenv?utm_source=hashnode&utm_medium=feed)

printenv is used to print out the environment variables. Environment variables are a common form of setting global values across a terminal session. Environment variables can be set by the systems, automation scripts, or by the user. You can print yo...

Oct 18, 2020 · 1 min read · rambling.umesh.dev  
Updated Sep 3, 2021  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Umesh Yadav](https://hashnode.com/@imumesh18)

@imumesh18 · Mumbai, IN

  
[View profile](https://hashnode.com/@imumesh18)

Software Engineer | Introverted

My code is a liability⚡️Learning one thing at a time⚡️ ✍️ @ blog.umesh.wtf and freecodecamp.org/news

## Responses 1

Markdown supported · ⌘↵ to post

[Chau Giang](https://hashnode.com/@chgiang)

[Oct 19, 2020](https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5/comment/5f8d3f2583db9130bf5bcba9)

why you do not use just `env` command?

[Umesh Yadav](https://hashnode.com/@imumesh18)

[Oct 19, 2020](https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5/comment/5f8d3f2583db9130bf5bcba9#reply-5f8d4c0a89e922309e012978)

Hey, so env allows you to print all the environment variables, set a environment variable and disable all the environment variables. But it doesn’t provide a way to print a value of specific environment variable which printenv gives you out of the box. So the use case where you want to print a specific value of environment variable this comes handy
