<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Unix on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/unix/</link>
    <description>Recent content in Unix on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Tue, 09 May 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/unix/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Grep for files that does not contain a specific string</title>
      <link>https://raveenkumar.com/posts/2023-05-09-grep-for-files-that-does-not-contain-a-specific-string/</link>
      <pubDate>Tue, 09 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-09-grep-for-files-that-does-not-contain-a-specific-string/</guid>
      <description>&lt;p&gt;Another useful way to use grep is for printing file names that do not contain a specific string, for example&lt;/p&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;grep -L &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;string&amp;#34;&lt;/span&gt; *&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can use the &lt;code&gt;-L&lt;/code&gt; option of the &lt;code&gt;grep&lt;/code&gt; command, which prints the names of all files that do not contain the specified search string.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;*&lt;/code&gt; at the end tells &lt;code&gt;grep&lt;/code&gt; to search all files in the current directory. If you want to search only specific files or directories, you can replace the &lt;code&gt;*&lt;/code&gt; with the filenames or directory names.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Periodically run a program and watch the output</title>
      <link>https://raveenkumar.com/posts/2023-05-05-periodically-run-a-program-and-watch-the-output/</link>
      <pubDate>Fri, 05 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-05-periodically-run-a-program-and-watch-the-output/</guid>
      <description>&lt;h2 id=&#34;watch&#34;&gt;watch&lt;/h2&gt;&#xA;&lt;p&gt;Execute a program periodically, showing output fullscreen&lt;/p&gt;&#xA;&lt;p&gt;Example&lt;/p&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;watch ls&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;alternative - &lt;code&gt;viddy&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Horizontally print file contents</title>
      <link>https://raveenkumar.com/posts/2023-05-03-horizontally-print-file-contents/</link>
      <pubDate>Wed, 03 May 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-05-03-horizontally-print-file-contents/</guid>
      <description>&lt;p&gt;To concatenate the contents of a vertical file horizontally in Unix, you can use the &lt;code&gt;paste&lt;/code&gt; command with the &lt;code&gt;-s&lt;/code&gt; option.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s an example:&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s say you have a file &lt;code&gt;file.txt&lt;/code&gt; with the following vertical content:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;apple&#xA;banana&#xA;orange&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can concatenate the contents horizontally using the following command:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;paste -s file.txt&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will produce the output:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;apple   banana  orange&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;-s&lt;/code&gt; option tells &lt;code&gt;paste&lt;/code&gt; to concatenate the lines horizontally instead of vertically. By default, &lt;code&gt;paste&lt;/code&gt; separates the columns with a tab character. If you want to use a different separator, you can specify it with the &lt;code&gt;-d&lt;/code&gt; option followed by the separator character. For example:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cat</title>
      <link>https://raveenkumar.com/library/programming/cat/</link>
      <pubDate>Sat, 18 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/cat/</guid>
      <description>&lt;h2 id=&#34;join-multimedia-files&#34;&gt;Join multimedia files&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;cat movie.mpeg.0* &amp;gt; movie.mpeg&#xA;cat *mp3 &amp;gt; combined.mp3&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>bc</title>
      <link>https://raveenkumar.com/library/programming/bc/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/bc/</guid>
      <description>&lt;h2 id=&#34;bc-as-a-hex-calculator&#34;&gt;bc as a hex calculator&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;obase=16&#xA;ibase=16&#xA;9+1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;bc-fractional&#34;&gt;bc fractional&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;scale=10&#xA;1/3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;evaluating-expressions-from-commandline&#34;&gt;Evaluating expressions from commandline&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;bc &amp;lt;&amp;lt;&amp;lt; &amp;quot;ibase=10; obase=16; $(grep cru_spare -r | awk -F &amp;quot;,&amp;quot; &#39;{print $NF}&#39;)&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Diff</title>
      <link>https://raveenkumar.com/library/programming/diff/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/diff/</guid>
      <description>&lt;h2 id=&#34;to-diff-2-files&#34;&gt;To diff 2 files&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;diff file1 file2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;to-diff-2-files-and-view-side-by-side&#34;&gt;To diff 2 files and view side by side&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;diff -y file1 file2&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Example pstree command</title>
      <link>https://raveenkumar.com/posts/2023-02-17-pstree/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-02-17-pstree/</guid>
      <description>&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pstree -u username -hp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Linux notes general</title>
      <link>https://raveenkumar.com/library/programming/linux/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/linux/</guid>
      <description>&lt;h2 id=&#34;commands&#34;&gt;Commands&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;cat - contatenate&lt;/li&gt;&#xA;&lt;li&gt;tac - concatenate in reverse&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;column-command&#34;&gt;&lt;code&gt;column&lt;/code&gt; command&lt;/h2&gt;&#xA;&lt;p&gt;The column utility formats its input into multiple columns.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;printf &amp;quot;a:b:c\n1::3\n&amp;quot; | column -t -s &#39;:&#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;table border=&#34;2&#34; cellspacing=&#34;0&#34; cellpadding=&#34;6&#34; rules=&#34;groups&#34; frame=&#34;hsides&#34;&gt;&#xA;&lt;colgroup&gt;&#xA;&lt;col  class=&#34;org-right&#34; /&gt;&#xA;&lt;col  class=&#34;org-right&#34; /&gt;&#xA;&lt;col  class=&#34;org-left&#34; /&gt;&#xA;&lt;/colgroup&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;a&lt;/td&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;b&lt;/td&gt;&#xA;&lt;td class=&#34;org-left&#34;&gt;c&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;1&lt;/td&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;3&lt;/td&gt;&#xA;&lt;td class=&#34;org-left&#34;&gt;&amp;#xa0;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Note that this output is different from one that is printed in terminal. Strange… Below is the terminal output.&lt;/p&gt;&#xA;&lt;table border=&#34;2&#34; cellspacing=&#34;0&#34; cellpadding=&#34;6&#34; rules=&#34;groups&#34; frame=&#34;hsides&#34;&gt;&#xA;&lt;colgroup&gt;&#xA;&lt;col  class=&#34;org-right&#34; /&gt;&#xA;&lt;col  class=&#34;org-left&#34; /&gt;&#xA;&lt;col  class=&#34;org-right&#34; /&gt;&#xA;&lt;/colgroup&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;a&lt;/td&gt;&#xA;&lt;td class=&#34;org-left&#34;&gt;b&lt;/td&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;c&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;1&lt;/td&gt;&#xA;&lt;td class=&#34;org-left&#34;&gt;&amp;#xa0;&lt;/td&gt;&#xA;&lt;td class=&#34;org-right&#34;&gt;3&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;uuidgen-universal-unique-id-generator&#34;&gt;&lt;code&gt;uuidgen&lt;/code&gt; universal unique id generator&lt;/h2&gt;&#xA;&lt;p&gt;Generate unique ID&amp;rsquo;s&lt;/p&gt;&#xA;&lt;h2 id=&#34;script-records-terminal&#34;&gt;&lt;code&gt;script&lt;/code&gt; Records terminal&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;man script&#xA;man scriptreplay&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&#34;example&#34;&gt;Example&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;script --timing=file.tm script.out&#xA;# Write some scripts&#xA;# Exit with `exit` or `^d`&#xA;scriptreplay --timing file.tm --typescript script.out&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;reset-recover-a-borked-terminal&#34;&gt;&lt;code&gt;reset&lt;/code&gt; Recover a borked terminal&lt;/h2&gt;&#xA;&lt;h2 id=&#34;count-number-of-files-in-a-directory&#34;&gt;Count number of files in a directory&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;ls -1 | wc -l&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;building-from-source&#34;&gt;Building from source&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;./configure&#xA;./configure --prefix=$path&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;redirections&#34;&gt;Redirections&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;2&amp;gt;&amp;amp;1&#xA;2&amp;gt;&amp;amp;1 &amp;gt; /dev/null&#xA;&amp;gt;&#xA;&amp;gt;/dev/null&#xA;&amp;gt;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;keymaps&#34;&gt;Keymaps&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Ctrl-c&#xA;Ctrl-d&#xA;Ctrl-l&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;cp&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/cp/&#34;&gt;cp&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;cut&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/cut/&#34;&gt;cut&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;less&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/less/&#34;&gt;less&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;linux&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/linux/&#34;&gt;linux&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;seq&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/seq/&#34;&gt;seq&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;paste&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/paste/&#34;&gt;paste&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;pstree&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/posts/2023-02-17-pstree/&#34;&gt;pstree&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;du&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/du/&#34;&gt;du&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;rsync&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/rsync/&#34;&gt;rsync&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;sed&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/sed/&#34;&gt;sed&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;ssh&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/ssh/&#34;&gt;ssh&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;vifm&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/text-editors/vifm/&#34;&gt;vifm&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;zip&#34;&gt;&lt;a href=&#34;https://raveenkumar.com/library/programming/zip/&#34;&gt;zip&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h2 id=&#34;readline&#34;&gt;Readline&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;C-x C-e&lt;/code&gt; to edit current commant in default text editor&lt;/li&gt;&#xA;&lt;li&gt;or &lt;code&gt;v&lt;/code&gt; in &lt;code&gt;vi&lt;/code&gt; mode&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;ldd-print-shared-libraries&#34;&gt;&lt;code&gt;ldd&lt;/code&gt; Print shared libraries&lt;/h2&gt;&#xA;&lt;p&gt;This command can be used to find all the shared library or libraries of a program&lt;/p&gt;</description>
    </item>
    <item>
      <title>Unix find</title>
      <link>https://raveenkumar.com/library/programming/find/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/find/</guid>
      <description>&lt;h2 id=&#34;to-exclude-files-or-perform-reverse-match&#34;&gt;To exclude files or perform reverse match&lt;/h2&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;find . -not -iname &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;file&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;to-perform-regex-matching&#34;&gt;To perform regex matching&lt;/h2&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;find . -regex &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;.*file&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;to-find-and-print-only-symbolic-links-in-a-directory-and-its-subdirectories&#34;&gt;To find and print only symbolic links in a directory and its subdirectories&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;find . -type l -print&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to change hostname</title>
      <link>https://raveenkumar.com/posts/2022-09-13-change-hostname/</link>
      <pubDate>Tue, 13 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-09-13-change-hostname/</guid>
      <description>&lt;h2 id=&#34;how-to-change-hostname&#34;&gt;How to change hostname&lt;/h2&gt;&#xA;&lt;h2 id=&#34;print-hostname&#34;&gt;Print hostname&lt;/h2&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;hostname&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;hostname -I&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo $HOSTNAME&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;to-change-hostname&#34;&gt;To change hostname&lt;/h2&gt;&#xA;&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;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo hostname -b &amp;lt;New name&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo echo &amp;lt;new name&amp;gt; /etc/hostname&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;change name in &lt;code&gt;/etc/hosts&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;If you are in wsl, add the following entry to &lt;code&gt;/etc/wsl.conf&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-config&#34; data-lang=&#34;config&#34;&gt;[network]&#xA;generateHosts = false&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Restart computer&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
