You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/en/keymap.html

412 lines
14 KiB
HTML

6 years ago
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Console Keymap &mdash; Arthas 3.0.6-SNAPSHOT documentation</title>
6 years ago
<link rel="shortcut icon" href="_static/favicon.ico"/>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/overrides.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<script src="_static/center_page.js"></script>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> Arthas
</a>
<div class="version">
3.0.6-SNAPSHOT
6 years ago
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul>
<li class="toctree-l1"><a class="reference internal" href="install-detail.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="quick-start.html">Quick start</a></li>
<li class="toctree-l1"><a class="reference internal" href="advanced-use.html">Advanced usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="commands.html">Commands</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/issues?q=label%3Auser-case">User cases</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/issues?q=label%3Aquestion-answered">Questions and answers</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas">Fork me at GitHub</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md">CONTRIBUTING</a></li>
6 years ago
<li class="toctree-l1"><a class="reference internal" href="release-notes.html">Release Notes</a></li>
6 years ago
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Arthas</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> &raquo;</li>
<li>Arthas Console Keymap</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/alibaba/arthas/blob/master/site/src/site/sphinx/en/keymap.md" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="arthas-console-keymap">
<span id="arthas-console-keymap"></span><h1>Arthas Console Keymap<a class="headerlink" href="#arthas-console-keymap" title="Permalink to this headline"></a></h1>
6 years ago
<p>Use <code class="docutils literal notranslate"><span class="pre">keymap</span></code> command to print the current keymap:</p>
6 years ago
<p>The default keymap is:</p>
<table border="1" class="docutils">
<thead>
<tr>
<th>Shortcut</th>
<th>Shortcut Description</th>
<th>Command Name</th>
<th>Command Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>"\C-a"</code></td>
<td>ctrl + a</td>
<td>beginning-of-line</td>
<td>go to the beginning of the line</td>
</tr>
<tr>
<td><code>"\C-e"</code></td>
<td>ctrl + e</td>
<td>end-of-line</td>
<td>go to the end of the line</td>
</tr>
<tr>
<td><code>"\C-f"</code></td>
<td>ctrl + f</td>
<td>forward-word</td>
<td>forward a word</td>
</tr>
<tr>
<td><code>"\C-b"</code></td>
<td>ctrl + b</td>
<td>backward-word</td>
<td>backward a word</td>
</tr>
<tr>
<td><code>"\e[D"</code></td>
<td>left arrow</td>
<td>backward-char</td>
<td>backward a character</td>
</tr>
<tr>
<td><code>"\e[C"</code></td>
<td>right arrow</td>
<td>forward-char</td>
<td>forward a character</td>
</tr>
<tr>
<td><code>"\e[B"</code></td>
<td>down arrow</td>
<td>next-history</td>
<td>show next history command</td>
</tr>
<tr>
<td><code>"\e[A"</code></td>
<td>up arrow</td>
<td>previous-history</td>
<td>show previous history command</td>
</tr>
<tr>
<td><code>"\C-h"</code></td>
<td>ctrl + h</td>
<td>backward-delete-char</td>
<td>backward delete a character</td>
</tr>
<tr>
<td><code>"\C-?"</code></td>
<td>ctrl + shift + /</td>
<td>backward-delete-char</td>
<td>backward delete a character</td>
</tr>
<tr>
<td><code>"\C-u"</code></td>
<td>ctrl + u</td>
<td>undo</td>
<td>clear current line</td>
</tr>
<tr>
<td><code>"\C-d"</code></td>
<td>ctrl + d</td>
<td>delete-char</td>
<td>delete the character of the current cursor</td>
</tr>
<tr>
<td><code>"\C-k"</code></td>
<td>ctrl + k</td>
<td>kill-line</td>
<td>delete all characters from the current cursor to the end of the line</td>
</tr>
<tr>
<td><code>"\C-i"</code></td>
<td>ctrl + i</td>
<td>complete</td>
<td>Auto completion, equivalent to <code>TAB</code></td>
</tr>
<tr>
<td><code>"\C-j"</code></td>
<td>ctrl + j</td>
<td>accept-line</td>
<td>end the current line, equivalent to <code>enter</code></td>
</tr>
<tr>
<td><code>"\C-m"</code></td>
<td>ctrl + m</td>
<td>accept-line</td>
<td>end the current line, equivalent to <code>enter</code></td>
</tr>
<tr>
<td><code>"\C-w"</code></td>
<td></td>
<td>backward-delete-word</td>
<td></td>
</tr>
<tr>
<td><code>"\C-x\e[3~"</code></td>
<td></td>
<td>backward-kill-line</td>
<td></td>
</tr>
<tr>
<td><code>"\e\C-?"</code></td>
<td></td>
<td>backward-kill-word</td>
<td></td>
</tr>
</tbody>
</table><ul class="simple">
6 years ago
<li>Press <code class="docutils literal notranslate"><span class="pre">tab</span></code> to enable auto-completion prompt at any time.</li>
<li>Enter command and <code class="docutils literal notranslate"><span class="pre">-</span></code> or <code class="docutils literal notranslate"><span class="pre">--</span></code>, then press <code class="docutils literal notranslate"><span class="pre">tab</span></code> to display the concrete options for the current command.</li>
6 years ago
</ul>
<div class="section" id="custom-shortcuts">
<span id="custom-shortcuts"></span><h2>Custom shortcuts<a class="headerlink" href="#custom-shortcuts" title="Permalink to this headline"></a></h2>
6 years ago
<p>Specify customization in <code class="docutils literal notranslate"><span class="pre">$USER_HOME/.arthas/conf/inputrc</span></code> file in the current user home directory.</p>
<p>Vim user may want to map <code class="docutils literal notranslate"><span class="pre">ctrl+h</span></code> to moving the cursor forward one character. To achieve this, copy the default configuration first,</p>
6 years ago
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="s2">&quot;\C-a&quot;</span><span class="p">:</span> <span class="n">beginning</span><span class="o">-</span><span class="n">of</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\C-e&quot;</span><span class="p">:</span> <span class="n">end</span><span class="o">-</span><span class="n">of</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\C-f&quot;</span><span class="p">:</span> <span class="n">forward</span><span class="o">-</span><span class="n">word</span>
<span class="s2">&quot;\C-b&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">word</span>
<span class="s2">&quot;\e[D&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">char</span>
<span class="s2">&quot;\e[C&quot;</span><span class="p">:</span> <span class="n">forward</span><span class="o">-</span><span class="n">char</span>
<span class="s2">&quot;\e[B&quot;</span><span class="p">:</span> <span class="nb">next</span><span class="o">-</span><span class="n">history</span>
<span class="s2">&quot;\e[A&quot;</span><span class="p">:</span> <span class="n">previous</span><span class="o">-</span><span class="n">history</span>
<span class="s2">&quot;\C-h&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">delete</span><span class="o">-</span><span class="n">char</span>
<span class="s2">&quot;\C-?&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">delete</span><span class="o">-</span><span class="n">char</span>
<span class="s2">&quot;\C-u&quot;</span><span class="p">:</span> <span class="n">undo</span>
<span class="s2">&quot;\C-d&quot;</span><span class="p">:</span> <span class="n">delete</span><span class="o">-</span><span class="n">char</span>
<span class="s2">&quot;\C-k&quot;</span><span class="p">:</span> <span class="n">kill</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\C-i&quot;</span><span class="p">:</span> <span class="n">complete</span>
<span class="s2">&quot;\C-j&quot;</span><span class="p">:</span> <span class="n">accept</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\C-m&quot;</span><span class="p">:</span> <span class="n">accept</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\C-w&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">delete</span><span class="o">-</span><span class="n">word</span>
<span class="s2">&quot;\C-x\e[3~&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">kill</span><span class="o">-</span><span class="n">line</span>
<span class="s2">&quot;\e\C-?&quot;</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">kill</span><span class="o">-</span><span class="n">word</span>
</pre></div>
</div>
6 years ago
<p>then replace <code class="docutils literal notranslate"><span class="pre">&quot;\C-h&quot;:</span> <span class="pre">backward-delete-char</span></code> with <code class="docutils literal notranslate"><span class="pre">&quot;\C-h&quot;:</span> <span class="pre">backward-char</span></code>, then reconnect to Arthas console to take effect.</p>
6 years ago
</div>
6 years ago
<div class="section" id="shortcuts-for-jobs">
<span id="shortcuts-for-jobs"></span><h2>Shortcuts for jobs<a class="headerlink" href="#shortcuts-for-jobs" title="Permalink to this headline"></a></h2>
6 years ago
<ul class="simple">
6 years ago
<li><code class="docutils literal notranslate"><span class="pre">ctrl</span> <span class="pre">+</span> <span class="pre">c</span></code>: Terminate current command</li>
<li><code class="docutils literal notranslate"><span class="pre">ctrl</span> <span class="pre">+</span> <span class="pre">z</span></code>: Suspend the current command, you can restore this command with <code class="docutils literal notranslate"><span class="pre">bg</span></code>/<code class="docutils literal notranslate"><span class="pre">fg</span></code>, or <code class="docutils literal notranslate"><span class="pre">kill</span></code> it.</li>
<li><code class="docutils literal notranslate"><span class="pre">ctrl</span> <span class="pre">+</span> <span class="pre">a</span></code>: Go to the beginning the line</li>
<li><code class="docutils literal notranslate"><span class="pre">ctrl</span> <span class="pre">+</span> <span class="pre">e</span></code>: Go to the end of the line</li>
6 years ago
</ul>
</div>
</div>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2018, Alibaba Middleware Group, and contributors.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'3.0.6-SNAPSHOT',
6 years ago
LANGUAGE:'en',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/alibaba/arthas">Fork me at GitHub</a>
</div>
</div>
<script type="text/javascript" src="_static/add_badges.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>