printenv
systemLinux/Unix
The printenv command is one of the most frequently used commands in Linux/Unix-like operating systems. printenv Print all or part of the environment
Quick Reference
Command Name:
printenv
Category:
system
Platform:
Linux/Unix
Basic Usage:
printenv [options] [arguments]
Common Use Cases
Syntax
printenv [OPTION]... [VARIABLE]...
Options
Option | Description |
---|---|
-0, --null |
End each output line with a null byte rather than a newline |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the printenv
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
printenv