95 lines
2.1 KiB
HTML
95 lines
2.1 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>alias - Define or display aliases</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>alias - Define or display aliases</h2>
|
||
|
|
||
|
<strong>Synopsis</strong>
|
||
|
|
||
|
<p><strong>alias [ -p ]</strong> [ <em>name</em> [ <em>=value</em>
|
||
|
] ... ]</p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>The <strong>alias</strong> utility defines an alias <em>
|
||
|
name</em> that has the specified <em>value</em>. If only
|
||
|
<em>name</em> is specified, <strong>qsh</strong> displays the name and
|
||
|
value of the alias.</p>
|
||
|
|
||
|
<p>When no arguments are specified, <strong>qsh</strong> displays a
|
||
|
list of all the aliases and their values.</p>
|
||
|
|
||
|
<p><strong>qsh</strong> defines these default aliases:
|
||
|
<ul>
|
||
|
<li>float='declare -E'</li>
|
||
|
|
||
|
<li>functions='declare -f'</li>
|
||
|
|
||
|
<li>integer='declare -i'</li>
|
||
|
</ul>
|
||
|
</p>
|
||
|
|
||
|
<p><strong>Options</strong></p>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong>-p</strong></dt>
|
||
|
|
||
|
<dd>Precede each line of the output with the word "alias " so it is
|
||
|
displayed in a re-enterable format.</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>Each <em>name</em> specifies an alias in the current
|
||
|
environment. If a <em>value</em> is also specified, then the value
|
||
|
of the alias is updated.</p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when successful.</li>
|
||
|
|
||
|
<li>>0 when unsuccessful. The value is the number of <em>
|
||
|
names</em> that are not aliases.</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Related information</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="unalias.htm">unalias - Remove alias
|
||
|
definitions</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<strong>Examples</strong>
|
||
|
|
||
|
<ol>
|
||
|
<li>Define an alias to list the contents of a directory:
|
||
|
<pre>
|
||
|
alias ll='ls -l'
|
||
|
</pre></li>
|
||
|
|
||
|
<li>Display the value of the ll alias:
|
||
|
<pre>
|
||
|
alias ll
|
||
|
</pre></li>
|
||
|
|
||
|
<li>Display the values of all currently defined aliases:
|
||
|
<pre>
|
||
|
alias
|
||
|
</pre></li>
|
||
|
</ol>
|
||
|
</body>
|
||
|
</html>
|
||
|
|