<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jonathan Lee</title>
    <description>The latest articles on DEV Community by Jonathan Lee (@jonathanleeuk).</description>
    <link>https://dev.to/jonathanleeuk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3995168%2Fb26fd1ac-cce3-4c41-a757-2bfa69bef1b9.png</url>
      <title>DEV Community: Jonathan Lee</title>
      <link>https://dev.to/jonathanleeuk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jonathanleeuk"/>
    <language>en</language>
    <item>
      <title>Getting Help on Linux: man, less, --help and cheat.sh</title>
      <dc:creator>Jonathan Lee</dc:creator>
      <pubDate>Sun, 21 Jun 2026 10:32:17 +0000</pubDate>
      <link>https://dev.to/jonathanleeuk/helps-on-linux-4oma</link>
      <guid>https://dev.to/jonathanleeuk/helps-on-linux-4oma</guid>
      <description>&lt;p&gt;Instead of asking AI or searching on the Internet, using the manuals within you system ensures it complies with your system exactly, not something generally assumed. And you can use it without Internet, and get it faster.&lt;/p&gt;

&lt;p&gt;Get the system reference manual of a command by execute &lt;code&gt;man command&lt;/code&gt;, like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#show the manual of command man&lt;/span&gt;
man man
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For learning purposes, reading the SYNOPSIS, DESCRIPTION, EXAMPLES, and NOTES sections, skimming the available groups of options, don't read linearly. For man pay attentions to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Searches names&lt;/span&gt;
man &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;whatis options] page ... 
&lt;span class="c"&gt;# Searches both names and descriptions for the keyword as a substring/regex. &lt;/span&gt;
man &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;apropos options] regexp ...
&lt;span class="c"&gt;# Searches for text in all manual pages&lt;/span&gt;
man &lt;span class="nt"&gt;-K&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;man options] &lt;span class="o"&gt;[&lt;/span&gt;section] term ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you encounter something you don't know or unfamiliar with, using these commands to find its manuals for helps. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;command --help&lt;/code&gt; can give you a help list of the command, like &lt;code&gt;dnf --help&lt;/code&gt;. It is very helpful to remind you what commands or options you need to use. And, get a glance of the whole picture.&lt;/p&gt;

&lt;p&gt;On that note, execute &lt;code&gt;man less&lt;/code&gt; to see how to use it. The most import command of &lt;code&gt;less&lt;/code&gt; is h&amp;nbsp;, giving you the help. You might use daily&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;j&lt;/code&gt;/&lt;code&gt;k&lt;/code&gt; scroll up/down&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Space&lt;/code&gt;/&lt;code&gt;b&lt;/code&gt; page forward/back&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/pattern&lt;/code&gt; search&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;n/N&lt;/code&gt; next/previous match&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;g/G&lt;/code&gt; jump to top/bottom&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;q&lt;/code&gt; quit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you can use these command to help you read the manuals, as they are displayed by &lt;code&gt;less&lt;/code&gt;. When you are reading a manual, you can use &lt;code&gt;/^EXAMPLES&lt;/code&gt; to jump between sections. &lt;/p&gt;

&lt;p&gt;Using &lt;code&gt;curl cheat.sh/command&lt;/code&gt;, you can get a cheat list of the command, like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl cheat.sh/apt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is quite concise and practical. You will not remember all commands and options that you only use casually. Manuals is too long, &lt;code&gt;--help&lt;/code&gt; is to short, this is the best option for real uses.&lt;/p&gt;

</description>
      <category>linux</category>
    </item>
  </channel>
</rss>
