mirror of https://github.com/alibaba/arthas.git
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.
412 lines
14 KiB
HTML
412 lines
14 KiB
HTML
|
|
|
|
<!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 — Arthas 3.0.5-SNAPSHOT documentation</title>
|
|
|
|
|
|
|
|
|
|
<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.5-SNAPSHOT
|
|
</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 internal" href="release-notes.html">Release Notes</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>
|
|
</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> »</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>
|
|
<p><code class="docutils literal notranslate"><span class="pre">keymap</span></code> command print current keymap.</p>
|
|
<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">
|
|
<li>You can enter <code class="docutils literal notranslate"><span class="pre">Tab</span></code> to get automatic prompts at any time.</li>
|
|
<li>After typing the command, type <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 specific options of this command.</li>
|
|
</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>
|
|
<p>Create a new <code class="docutils literal notranslate"><span class="pre">$USER_HOME/.arthas/conf/inputrc</span></code> file in the current user home directory and add a custom configuration.</p>
|
|
<p>Suppose I am a heavy user of vim. I want to set <code class="docutils literal notranslate"><span class="pre">ctrl+h</span></code> to the cursor forward character. Set it as follows, first copy the default configuration.</p>
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="s2">"\C-a"</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">"\C-e"</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">"\C-f"</span><span class="p">:</span> <span class="n">forward</span><span class="o">-</span><span class="n">word</span>
|
|
<span class="s2">"\C-b"</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">word</span>
|
|
<span class="s2">"\e[D"</span><span class="p">:</span> <span class="n">backward</span><span class="o">-</span><span class="n">char</span>
|
|
<span class="s2">"\e[C"</span><span class="p">:</span> <span class="n">forward</span><span class="o">-</span><span class="n">char</span>
|
|
<span class="s2">"\e[B"</span><span class="p">:</span> <span class="nb">next</span><span class="o">-</span><span class="n">history</span>
|
|
<span class="s2">"\e[A"</span><span class="p">:</span> <span class="n">previous</span><span class="o">-</span><span class="n">history</span>
|
|
<span class="s2">"\C-h"</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">"\C-?"</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">"\C-u"</span><span class="p">:</span> <span class="n">undo</span>
|
|
<span class="s2">"\C-d"</span><span class="p">:</span> <span class="n">delete</span><span class="o">-</span><span class="n">char</span>
|
|
<span class="s2">"\C-k"</span><span class="p">:</span> <span class="n">kill</span><span class="o">-</span><span class="n">line</span>
|
|
<span class="s2">"\C-i"</span><span class="p">:</span> <span class="n">complete</span>
|
|
<span class="s2">"\C-j"</span><span class="p">:</span> <span class="n">accept</span><span class="o">-</span><span class="n">line</span>
|
|
<span class="s2">"\C-m"</span><span class="p">:</span> <span class="n">accept</span><span class="o">-</span><span class="n">line</span>
|
|
<span class="s2">"\C-w"</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">"\C-x\e[3~"</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">"\e\C-?"</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>
|
|
<p>Then replace <code class="docutils literal notranslate"><span class="pre">"\C-h":</span> <span class="pre">backward-delete-char</span></code> with <code class="docutils literal notranslate"><span class="pre">"\C-h":</span> <span class="pre">backward-char</span></code>, then reconnect.</p>
|
|
</div>
|
|
<div class="section" id="shortcuts-about-async">
|
|
<span id="shortcuts-about-async"></span><h2>Shortcuts about async<a class="headerlink" href="#shortcuts-about-async" title="Permalink to this headline">¶</a></h2>
|
|
<ul class="simple">
|
|
<li>ctrl + c: Terminate current command</li>
|
|
<li>ctrl + z: Suspend the current command, you can restore this command with bg/fg, or kill it.</li>
|
|
<li>ctrl + a: Go to the beginning the line</li>
|
|
<li>ctrl + e: Go to the end of the line</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<footer>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
© 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.5-SNAPSHOT',
|
|
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> |