This file is indexed.

/usr/share/doc/racket/guide/cmdline-tools.html is in racket-doc 6.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>24.1&nbsp;Command-Line Tools</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x"><span style="font-weight: bold">The Racket Guide</span></a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="intro.html" class="tocviewlink" data-pltdoc="x">Welcome to Racket</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="to-scheme.html" class="tocviewlink" data-pltdoc="x">Racket Essentials</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="datatypes.html" class="tocviewlink" data-pltdoc="x">Built-<wbr></wbr>In Datatypes</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="scheme-forms.html" class="tocviewlink" data-pltdoc="x">Expressions and Definitions</a></td></tr><tr><td align="right">5&nbsp;</td><td><a href="define-struct.html" class="tocviewlink" data-pltdoc="x">Programmer-<wbr></wbr>Defined Datatypes</a></td></tr><tr><td align="right">6&nbsp;</td><td><a href="modules.html" class="tocviewlink" data-pltdoc="x">Modules</a></td></tr><tr><td align="right">7&nbsp;</td><td><a href="contracts.html" class="tocviewlink" data-pltdoc="x">Contracts</a></td></tr><tr><td align="right">8&nbsp;</td><td><a href="i_o.html" class="tocviewlink" data-pltdoc="x">Input and Output</a></td></tr><tr><td align="right">9&nbsp;</td><td><a href="regexp.html" class="tocviewlink" data-pltdoc="x">Regular Expressions</a></td></tr><tr><td align="right">10&nbsp;</td><td><a href="control.html" class="tocviewlink" data-pltdoc="x">Exceptions and Control</a></td></tr><tr><td align="right">11&nbsp;</td><td><a href="for.html" class="tocviewlink" data-pltdoc="x">Iterations and Comprehensions</a></td></tr><tr><td align="right">12&nbsp;</td><td><a href="match.html" class="tocviewlink" data-pltdoc="x">Pattern Matching</a></td></tr><tr><td align="right">13&nbsp;</td><td><a href="classes.html" class="tocviewlink" data-pltdoc="x">Classes and Objects</a></td></tr><tr><td align="right">14&nbsp;</td><td><a href="units.html" class="tocviewlink" data-pltdoc="x">Units (Components)</a></td></tr><tr><td align="right">15&nbsp;</td><td><a href="reflection.html" class="tocviewlink" data-pltdoc="x">Reflection and Dynamic Evaluation</a></td></tr><tr><td align="right">16&nbsp;</td><td><a href="macros.html" class="tocviewlink" data-pltdoc="x">Macros</a></td></tr><tr><td align="right">17&nbsp;</td><td><a href="languages.html" class="tocviewlink" data-pltdoc="x">Creating Languages</a></td></tr><tr><td align="right">18&nbsp;</td><td><a href="concurrency.html" class="tocviewlink" data-pltdoc="x">Concurrency and Synchronization</a></td></tr><tr><td align="right">19&nbsp;</td><td><a href="performance.html" class="tocviewlink" data-pltdoc="x">Performance</a></td></tr><tr><td align="right">20&nbsp;</td><td><a href="parallelism.html" class="tocviewlink" data-pltdoc="x">Parallelism</a></td></tr><tr><td align="right">21&nbsp;</td><td><a href="running.html" class="tocviewlink" data-pltdoc="x">Running and Creating Executables</a></td></tr><tr><td align="right">22&nbsp;</td><td><a href="More_Libraries.html" class="tocviewlink" data-pltdoc="x">More Libraries</a></td></tr><tr><td align="right">23&nbsp;</td><td><a href="dialects.html" class="tocviewlink" data-pltdoc="x">Dialects of Racket and Scheme</a></td></tr><tr><td align="right">24&nbsp;</td><td><a href="other-editors.html" class="tocviewselflink" data-pltdoc="x">Command-<wbr></wbr>Line Tools and Your Editor of Choice</a></td></tr><tr><td align="right"></td><td><a href="doc-bibliography.html" class="tocviewlink" data-pltdoc="x">Bibliography</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_1&quot;);">&#9660;</a></td><td>24&nbsp;</td><td><a href="other-editors.html" class="tocviewlink" data-pltdoc="x">Command-<wbr></wbr>Line Tools and Your Editor of Choice</a></td></tr></table><div class="tocviewsublist" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">24.1&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Command-<wbr></wbr>Line Tools</a></td></tr><tr><td align="right">24.2&nbsp;</td><td><a href="Emacs.html" class="tocviewlink" data-pltdoc="x">Emacs</a></td></tr><tr><td align="right">24.3&nbsp;</td><td><a href="Vim.html" class="tocviewlink" data-pltdoc="x">Vim</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_2&quot;);">&#9658;</a></td><td>24.1&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Command-<wbr></wbr>Line Tools</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_2"><table cellspacing="0" cellpadding="0"><tr><td align="right">24.1.1&nbsp;</td><td><a href="#%28part._compile%29" class="tocviewlink" data-pltdoc="x">Compilation and Configuration:<span class="mywbr"> &nbsp;</span> <span class="stt">raco</span></a></td></tr><tr><td align="right">24.1.2&nbsp;</td><td><a href="#%28part._.Interactive_evaluation__.X.R.E.P.L%29" class="tocviewlink" data-pltdoc="x">Interactive evaluation:<span class="mywbr"> &nbsp;</span> XREPL</a></td></tr><tr><td align="right">24.1.3&nbsp;</td><td><a href="#%28part._.Shell_completion%29" class="tocviewlink" data-pltdoc="x">Shell completion</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">24.1.1<tt>&nbsp;</tt></span><a href="#%28part._compile%29" class="tocsubseclink" data-pltdoc="x">Compilation and Configuration:<span class="mywbr"> &nbsp;</span> <span class="stt">raco</span></a></td></tr><tr><td><span class="tocsublinknumber">24.1.2<tt>&nbsp;</tt></span><a href="#%28part._.Interactive_evaluation__.X.R.E.P.L%29" class="tocsubseclink" data-pltdoc="x">Interactive evaluation:<span class="mywbr"> &nbsp;</span> XREPL</a></td></tr><tr><td><span class="tocsublinknumber">24.1.3<tt>&nbsp;</tt></span><a href="#%28part._.Shell_completion%29" class="tocsubseclink" data-pltdoc="x">Shell completion</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.1</span></div><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="other-editors.html" title="backward to &quot;24 Command-Line Tools and Your Editor of Choice&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="other-editors.html" title="up to &quot;24 Command-Line Tools and Your Editor of Choice&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Emacs.html" title="forward to &quot;24.2 Emacs&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h4 x-source-module="(lib &quot;scribblings/guide/guide.scrbl&quot;)" x-part-tag="&quot;cmdline-tools&quot;">24.1<tt>&nbsp;</tt><a name="(part._cmdline-tools)"></a>Command-Line Tools</h4><p>Racket provides, as part of its standard distribution, a number of
command-line tools that can make racketeering more pleasant.</p><h5 x-source-module="(lib &quot;scribblings/guide/guide.scrbl&quot;)" x-part-tag="&quot;compile&quot;">24.1.1<tt>&nbsp;</tt><a name="(part._compile)"></a>Compilation and Configuration: <span class="stt">raco</span></h5><p>The <span class="stt">raco</span> (short for &ldquo;<span style="font-weight: bold">Ra</span>cket <span style="font-weight: bold">co</span>mmand&rdquo;) program
provides a command-line interface to many additional tools for
compiling Racket programs and maintaining a Racket installation.</p><ul><li><p><span class="stt">raco make</span> compiles Racket source to bytecode.</p><p>For example, if you have a program <span class="stt">"take-over-world.rkt"</span> and
you&rsquo;d like to compile it to bytecode, along with all of its
dependencies, so that it loads more quickly, then run</p><p><span class="hspace">&nbsp;&nbsp;</span><span class="stt">raco make take-over-the-world.rkt</span></p><p>The bytecode file is written as <span class="stt">"take-over-the-world_rkt.zo"</span>
in a <span class="stt">"compiled"</span> subdirectory; <a name="(idx._(gentag._9._(lib._scribblings/guide/guide..scrbl)))"></a><span class="stt">".zo"</span>
is the file suffix for a bytecode file.</p></li><li><p><span class="stt">raco setup</span> manages a Racket installation, including
manually installed packages.</p><p>For example, if you create your own library <a href="module-basics.html#%28tech._collection%29" data-pltdoc="x">collection</a>
called <span class="stt">"take-over"</span>, and you&rsquo;d like to build all bytecode and
documentation for the collection, then run</p><p><span class="hspace">&nbsp;&nbsp;</span><span class="stt">raco setup take-over</span></p></li><li><p><span class="stt">raco pkg</span> manages <a href="module-basics.html#%28tech._package%29" class="techoutside" data-pltdoc="x"><span class="techinside">package</span></a>s that can be installed
through the Racket package manager.</p><p>For example, to see the list of installed packages run:</p><p><span class="hspace">&nbsp;&nbsp;</span><span class="stt">raco pkg show</span></p><p>To install a new package named <span class="stt">&lt;package-name&gt;</span> run:</p><p><span class="hspace">&nbsp;&nbsp;</span><span class="stt">raco pkg install &lt;package-name&gt;</span></p><p>See <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=pkg&amp;rel=index.html&amp;version=6.1" class="Sq" data-pltdoc="x">Package Management in Racket</a> for more details
about package management.</p></li></ul><p>For more information on <span class="stt">raco</span>, see <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=raco&amp;rel=index.html&amp;version=6.1" class="Sq" data-pltdoc="x"><span class="stt">raco</span>: Racket Command-Line Tools</a>.</p><h5 x-source-module="(lib &quot;scribblings/guide/guide.scrbl&quot;)" x-part-tag="&quot;Interactive_evaluation__XREPL&quot;">24.1.2<tt>&nbsp;</tt><a name="(part._.Interactive_evaluation__.X.R.E.P.L)"></a>Interactive evaluation: XREPL</h5><p>The Racket distribution includes <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=xrepl&amp;rel=index.html&amp;version=6.1" class="Sq" data-pltdoc="x">XREPL</a> (eXtended REPL), which provides everything you expect
from a modern interactive environment. For example, XREPL provides an
<a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=xrepl&amp;rel=index.html%23%2528xrepl._enter%2529&amp;version=6.1" class="plainlink Sq" data-pltdoc="x"><span class="RktInBG"><span class="hspace"></span><span class="RktIn">,enter</span><span class="hspace"></span></span></a> command to have a REPL that runs in the context of a
given module, and an <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=xrepl&amp;rel=index.html%23%2528xrepl._edit%2529&amp;version=6.1" class="plainlink Sq" data-pltdoc="x"><span class="RktInBG"><span class="hspace"></span><span class="RktIn">,edit</span><span class="hspace"></span></span></a> command to invoke your editor (as
specified by the <span class="stt">EDITOR</span> environment variable) on the file you
entered. A <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=xrepl&amp;rel=index.html%23%2528xrepl._drracket%2529&amp;version=6.1" class="plainlink Sq" data-pltdoc="x"><span class="RktInBG"><span class="hspace"></span><span class="RktIn">,drracket</span><span class="hspace"></span></span></a> command makes it easy to use your
favorite editor to write code, and still have DrRacket at hand to try
things out.</p><p>For more information about XREPL, see <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=xrepl&amp;rel=index.html&amp;version=6.1" class="Sq" data-pltdoc="x">XREPL: eXtended REPL</a>.</p><h5 x-source-module="(lib &quot;scribblings/guide/guide.scrbl&quot;)" x-part-tag="&quot;Shell_completion&quot;">24.1.3<tt>&nbsp;</tt><a name="(part._.Shell_completion)"></a>Shell completion</h5><p>Shell auto-completion for <span class="stt">bash</span> and <span class="stt">zsh</span> is available in
<span class="stt">"collects/meta/contrib/completion/racket-completion.bash"</span> and
<span class="stt">"collects/meta/contrib/completion/racket-completion.zsh"</span>,
respectively.
To enable it, just run the appropriate file from your <span class="stt">.bashrc</span> or
your <span class="stt">.zshrc</span>.</p><p>The <span class="stt">"meta"</span> collection is only available in the Racket Full
distribution. The completion scripts are also available
<a href="https://github.com/plt/racket/tree/master/collects/meta/contrib/completion">online</a>.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="other-editors.html" title="backward to &quot;24 Command-Line Tools and Your Editor of Choice&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="other-editors.html" title="up to &quot;24 Command-Line Tools and Your Editor of Choice&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Emacs.html" title="forward to &quot;24.2 Emacs&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>