diff options
Diffstat (limited to 'help/en/bash/type.html')
-rw-r--r-- | help/en/bash/type.html | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/help/en/bash/type.html b/help/en/bash/type.html new file mode 100644 index 0000000..c9309ac --- /dev/null +++ b/help/en/bash/type.html @@ -0,0 +1,78 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> +<head> +<link rel="STYLESHEET" href="../term_tools/main.css" type="text/css"> +<title>type MAN Page</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +</head><body><!-- #BeginLibraryItem "/Library/head_bash.lbi" --><div id="nav-menu"> +<ul> +<li><a class="rl" href="../term_tools/index.html"><img src="../term_tools/images/ss64.gif" title="Home" alt="Home"></a></li> +<li><a class="rl" href="../term_tools/bash"><img src="../term_tools/images/bash-l.gif" title="bash" alt="bash"></a></li> +<li><!-- Search Google --> +<form action="http://www.google.com/search" method="get" style="margin:0px;padding:0px;"> +<div align="right"> +<input name="q" type="text" class="body" size="25"> +<input class="submit" type="submit" value="Search"> +<input type="hidden" name="q" value="site:ss64.com/bash/"> +</div> +</form></li> +<li><a class="rr" href="syntax.html"><img src="../term_tools/images/syntax-r.gif" title="Bash Syntax"></a></li> +</ul> +</div> <!-- #EndLibraryItem --><h1> type</h1> +<p>Describe a command, for each <i>name</i>, indicate how it would be interpreted + if used as <br> +a command name. </p> +<pre>Syntax + type [-atp] [<var>name</var> ...] + +Options + If the `-t' option is used, type prints a single word which is one of: + `alias' (shell alias) + `function' (shell function) + `builtin' (shell builtin) + `file' (disk file) + `keyword' (shell reserved word) + + If the `-p' option is used, type either returns the name of the disk file that + would be executed, or nothing if `-t' would not return `file'. + + If the `-a' option is used, type returns all of the places that contain an + executable named file. This includes aliases and functions, if and only if the + `-p' option is not also used.</pre> +<p> The return status is zero if any of the <i>names</i> are found, non-zero otherwise.</p> +<p>`type' is a BASH builtin command.</p> +<p><em>"In his errors a man is true to type. Observe the errors and you will +know the man" - Analects</em></p> +<p><b>Related</b>:<br> + <a href="builtin.html"><br> + builtin</a> - Run a shell builtin<a href="env.html"><br> + env</a> - Display, set, or remove environment variables<br> + <a href="echo.html">echo</a> - Display message on screen <br> + <a href="export.html">export</a> - Set an environment variable<br> + <a href="function.html">function</a> - Define Function Macros <br> + <a href="readonly.html">readonly</a> - Mark variables/functions as readonly<br> + <a href="set.html">set</a> - Manipulate shell variables and functions <br> +<a href="whereis.html">whereis</a> - Report all known instances of a command</p> +<!-- #BeginLibraryItem "/Library/foot_bash.lbi" --><p align="left"><script type="text/javascript"><!-- +google_ad_client = "pub-6140977852749469"; +google_ad_width = 300; +google_ad_height = 250; +google_ad_format = "300x250_as"; +google_ad_type = "text_image"; +google_ad_channel ="1984328893"; +google_color_border = "CCCCCC"; +google_color_bg = "CCCCCC"; +google_color_link = "000000"; +google_color_text = "333333"; +google_color_url = "0000FF"; +//--></script> +<script type="text/javascript" + src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> +</script><br> +</p> +<div align="center"><hr size="1"> + <p id="top"><a href="#"><img src="../term_tools/images/top-4.gif" width="47" height="53" border="0" alt="Back to the Top" title="Back to the Top"></a></p> + <p class="tagline">© Copyright <a href="http://ss64.com/">SS64.com</a> 1999-2010<br> +Some rights reserved<br> +</p> +</div><!-- #EndLibraryItem --></body> +</html> |