Name

printenv

Synopsis

    printenv [variable]

Print values of all environment variables or, optionally, only the specified variable. The more standard alternative, env, doesn’t let you view just one variable, but it lets you redefine them. On Solaris, printenv is in /usr/ucb.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.