<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Shell - Tag - Xiaopeng Xu</title><link>https://xu-xp.com/tags/shell/</link><description>Shell - Tag - Xiaopeng Xu</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</managingEditor><webMaster>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</webMaster><lastBuildDate>Fri, 02 Oct 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://xu-xp.com/tags/shell/" rel="self" type="application/rss+xml"/><item><title>Shell 常用命令</title><link>https://xu-xp.com/posts/shell_commons/</link><pubDate>Fri, 02 Oct 2020 00:00:00 +0000</pubDate><author>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</author><guid>https://xu-xp.com/posts/shell_commons/</guid><description><![CDATA[<h2 id="日常操作">日常操作</h2>
<h3 id="命令行打开-rstudio">命令行打开 Rstudio</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-plain">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plain" data-lang="plain"><span class="line"><span class="cl">open -na Rstudio</span></span></code></pre></div></div>
<h3 id="命令行打开-jupyterlab">命令行打开 JupyterLab</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-plain">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plain" data-lang="plain"><span class="line"><span class="cl">jupyter lab # 基础命令
</span></span><span class="line"><span class="cl">nohup  jupyter-lab --no-browser --ip=&#34;0.0.0.0&#34; 2&gt;&amp;1 &amp; # 后台运行命令</span></span></code></pre></div></div>
<h3 id="查看系统内存和资源">查看系统内存和资源</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-plain">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plain" data-lang="plain"><span class="line"><span class="cl">htop
</span></span><span class="line"><span class="cl">top</span></span></code></pre></div></div>
<h3 id="查看-gpu-内存使用率">查看 GPU 内存使用率</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-plain">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plain" data-lang="plain"><span class="line"><span class="cl">watch -n 0.5 nvidia-smi</span></span></code></pre></div></div>
<h3 id="开启-vncviewer-服务器">开启 vncviewer 服务器</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-plain">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plain" data-lang="plain"><span class="line"><span class="cl">vncserver -rfbport 8888</span></span></code></pre></div></div>
<h3 id="更新-dns-服务器">更新 DNS 服务器</h3>
<p>每次重启 xuxa 后，都需要更新一下</p>]]></description></item></channel></rss>