<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Cheatsheet on Tech Notes by ClaudeXu</title>
        <link>https://blog.cxu.my.id/tags/cheatsheet/</link>
        <description>Recent content in Cheatsheet on Tech Notes by ClaudeXu</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Fri, 14 Aug 2026 14:35:08 +0800</lastBuildDate><atom:link href="https://blog.cxu.my.id/tags/cheatsheet/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>My Cmdl Cheatsheet</title>
        <link>https://blog.cxu.my.id/post/tools/cmdl-cheatsheet/</link>
        <pubDate>Fri, 14 Aug 2026 14:35:08 +0800</pubDate>
        
        <guid>https://blog.cxu.my.id/post/tools/cmdl-cheatsheet/</guid>
        <description>&lt;h2 id=&#34;fd&#34;&gt;fd
&lt;/h2&gt;&lt;p&gt;Search the current directory for all directories whose names contain the letter &amp;rsquo;t&#39;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ fd -d &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; -t d &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.*t.*&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DataLab
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PythonLab
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;RustLab
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;-d 1&lt;/code&gt; means the max depth is 1, which is equivalent to the current directory.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-t d&lt;/code&gt; means to only include entries of directory type.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Search against file full path&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ fd -p -i &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.*pythonlab.*\.py$&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PythonLab/Scripts/lab.py
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Search by file size&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ fd -l -S +800K &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.*\.py$&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rw-rw-r-- &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; chsu chsu 841K Nov  &lt;span style=&#34;color:#ae81ff&#34;&gt;6&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;2025&lt;/span&gt; ./AILab/Env/lib/python3.14/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rw-rw-r-- &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; chsu chsu 841K Jul  &lt;span style=&#34;color:#ae81ff&#34;&gt;7&lt;/span&gt; 00:15 ./DuckDBLab/env/lib/python3.14/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;-S +/-&amp;lt;size&amp;gt;&lt;/code&gt; can specify a file size greater or smaller than &lt;code&gt;&amp;lt;size&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-l&lt;/code&gt; shows detailed information about the matching files.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;jupyter-lab&#34;&gt;Jupyter Lab
&lt;/h2&gt;&lt;p&gt;Start Jupyter Lab, listening on port 9523 and allowing traffic from all networks.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;jupyter lab --ip&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;0.0.0.0 --port&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;9523&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;vifm&#34;&gt;Vifm
&lt;/h2&gt;&lt;p&gt;Basic file operations&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;cw&lt;/code&gt; to rename (change word) the file&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cW&lt;/code&gt; to rename the base name of the file&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dd&lt;/code&gt; to delete/cut the file&lt;/li&gt;
&lt;li&gt;&lt;code&gt;t&lt;/code&gt; to toggle selection of the file&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:filter &amp;lt;regex&amp;gt;&lt;/code&gt; to filter out/hide files from the file list
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:filter! &amp;lt;regex&amp;gt;&lt;/code&gt; to keep the files according to the regex&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hide/show hidden files&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;za&lt;/code&gt; to toggle hiding/showing hidden files&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Preview files&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;w&lt;/code&gt; to toggle preview of the current file&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use marks as follows&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;m&lt;/code&gt; to mark/label the position&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&#39;&lt;/code&gt; to go to the marked position&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Split/hide windows as follows&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:only&lt;/code&gt; to only show the active window pane&lt;/li&gt;
&lt;li&gt;&lt;code&gt;vs&lt;/code&gt; to vertically split the window&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sp&lt;/code&gt; to horizontally split the window&lt;/li&gt;
&lt;/ul&gt;
</description>
        </item>
        
    </channel>
</rss>
