90 lines
2.3 KiB
HTML
90 lines
2.3 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>cd - Change working directory</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>cd - Change working directory</h2>
|
||
|
|
||
|
<strong>Synopsis</strong>
|
||
|
|
||
|
<p><strong>cd</strong> [ <em>directory</em> ]</p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>You can use <strong>cd</strong> to change the working directory.
|
||
|
<strong>qsh</strong> sets the <strong>PWD</strong> variable to the
|
||
|
new working directory and the <strong>OLDPWD</strong> variable to
|
||
|
the previous working directory.</p>
|
||
|
|
||
|
<p><strong>Options</strong></p>
|
||
|
|
||
|
<p>None.</p>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>For <em>directory</em>, you can specify:</p>
|
||
|
|
||
|
<dl>
|
||
|
<dt>- (minus)</dt>
|
||
|
|
||
|
<dd><strong>qsh</strong> changes the working directory to the
|
||
|
previous directory and displays the new working directory
|
||
|
name.</dd>
|
||
|
|
||
|
<dt><em>/name</em> or <em>../name</em></dt>
|
||
|
|
||
|
<dd><strong>qsh</strong> changes the working directory to the
|
||
|
specified <em>name</em>.</dd>
|
||
|
|
||
|
<dt><em>name</em> (does not begin with a / or ../)</dt>
|
||
|
|
||
|
<dd>If the <strong>CDPATH</strong> variable is set, <strong>
|
||
|
qsh</strong> prepends each directory in <strong>CDPATH</strong> to
|
||
|
<em>name</em> to construct a directory name. <strong>qsh</strong>
|
||
|
changes to the first directory that you have permission to.
|
||
|
<strong>qsh</strong> displays the new working directory name.
|
||
|
|
||
|
<p>If the <strong>CDPATH</strong> variable is not set, <strong>
|
||
|
qsh</strong> changes the working directory to the specified <em>
|
||
|
name</em>.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt>not specified</dt>
|
||
|
|
||
|
<dd><strong>qsh</strong> changes the working directory to the value
|
||
|
of the <strong>HOME</strong> variable.</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p>You must have permission to the specified <em>
|
||
|
directory.</em></p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when successful.</li>
|
||
|
|
||
|
<li>>0 when unsuccessful.</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Related information</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="hash.htm">hash - Remember or report utility
|
||
|
locations</a></li>
|
||
|
|
||
|
<li><a href="pwd.htm">pwd - Return working directory name</a></li>
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|
||
|
|