---
title: "Comment by Chau Giang on \"Linux Commands: printenv\" | Hashnode"
description: "why you do not use just env command?"
url: "https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5/comment/5f8d3f2583db9130bf5bcba9"
---

[Discussion](https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5)

Comment [Linux Commands: printenv](https://hashnode.com/posts/linux-commands-printenv/5f8c8bc889e922309e0122c5)

[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
