ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/hash.htm

71 lines
1.8 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>hash - Remember or report utility locations</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>hash - Remember or report utility locations</h2>
<p>
<strong>hash [ -p</strong> <em>filename</em> <strong>] [</strong> <em>utility</em> ... <strong>]</strong>
</p>
<p><strong>hash -r</strong></p>
<p><strong>Description</strong></p>
<p>The <strong>hash</strong> utility adds <em>utility</em> to the
list of remembered utility locations or removes all remembered
utilities from the list. By default, <strong>hash</strong> uses a
path search to find <em>utility</em>.</p>
<p>When no arguments are specified, <strong>hash</strong> reports
the contents of the list. An entry that has not been looked at
since the last <a href="cd.htm">cd</a> command is marked with an
asterisk; it is possible for the entry to be invalid.</p>
<p><strong>Options</strong></p>
<dl>
<dt>
<strong>-p</strong> <em>filename</em></dt>
<dd>Do not use a path search to find <em>utility</em>. Use the specified <em>filename</em>
as the location of <em>utility</em>.
</dd>
<dt><strong>-r</strong></dt>
<dd>Remove all previously remembered utility locations.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>Each <em>utility</em> is added to the list of remembered utility
locations.</p>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful.</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="cd.htm">cd - Change working directory</a></li>
</ul>
</body>
</html>