66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>printenv - Display values of environment variables</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
|
|
<h2>printenv - Display values of environment variables</h2>
|
|
|
|
<strong>Synopsis</strong>
|
|
|
|
|
|
<p>
|
|
<strong>printenv [ -s ] [</strong> <em>name</em> <strong>]</strong>
|
|
</p>
|
|
|
|
<p><strong>Description</strong></p>
|
|
|
|
<p>The <strong>printenv</strong> utility displays the value of the environment
|
|
variable <em>name</em>. If no <em>name</em> is specified, <strong>printenv</strong>
|
|
displays all of the current environment variables, one per line, in the format "name=value".
|
|
By default, <strong>printenv</strong> displays job environment variables.</p>
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<dl>
|
|
<dt><strong>-s</strong></dt>
|
|
|
|
<dd>Display system environment variables.</dd>
|
|
|
|
</dl>
|
|
|
|
<p><strong>Operands</strong></p>
|
|
|
|
<p>The <em>name</em> is the name of an environment variable in the current environment
|
|
or a system environment variable.</p>
|
|
|
|
<p><strong>Exit Status</strong></p>
|
|
|
|
<ul>
|
|
<li>0 when successful</li>
|
|
|
|
<li>>0 if <em>name</em> is not currently defined</li>
|
|
</ul>
|
|
|
|
<p><strong>Related information</strong></p>
|
|
|
|
<ul>
|
|
<li><a href="env.htm">env - Set environment for command invocation</a></li>
|
|
|
|
<li><a href="export.htm">export - Set export attribute for variables</a></li>
|
|
</ul>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|