<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Linux on Nelson Figueroa</title><link>https://nelson.cloud/categories/linux/</link><description>Recent content in Linux on Nelson Figueroa</description><image><title>Nelson Figueroa</title><url>https://nelson.cloud/apple-touch-icon.png</url><link>https://nelson.cloud/categories/linux/</link></image><language>en</language><lastBuildDate>Wed, 01 Apr 2026 22:42:16 -0700</lastBuildDate><atom:link href="https://nelson.cloud/categories/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Quick Tip: Mute the Terminal Login Message with a .hushlogin File</title><link>https://nelson.cloud/quick-tip-mute-the-terminal-login-message-with-a-.hushlogin-file/?ref=rss</link><pubDate>Sun, 28 Sep 2025 00:00:00 -0700</pubDate><guid>https://nelson.cloud/quick-tip-mute-the-terminal-login-message-with-a-.hushlogin-file/?ref=rss</guid><description>Create a .hushlogin file in your home directory to silence login messages.</description><content:encoded><![CDATA[<p>Today I learned that you can create an empty <code>.hushlogin</code> file in your home directory on macOS and Linux to hide the login message you get when starting up a new terminal window or tab.</p>
<p>I tried this on macOS but it should work on Linux too.</p>
<p>For example, when I start up a new terminal window/tab I see the following message:</p>
<img src="https://nelson.cloud/mute-terminal-login-message/before.webp" alt="terminal with login message" width="980" height="254" style="max-width: 100%; height: auto; aspect-ratio: 980 / 254;" loading="lazy" decoding="async">
<p>After I create the <code>.hushlogin</code> file in my home directory, the login message goes away. First I created the file:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">touch</span> ~/.hushlogin</span></span></code></pre></div><p>Then I opened a new terminal window to verify that the message no longer shows up:</p>
<img src="https://nelson.cloud/mute-terminal-login-message/after.webp" alt="terminal without login message after creating .hushlogin file" width="980" height="254" style="max-width: 100%; height: auto; aspect-ratio: 980 / 254;" loading="lazy" decoding="async">
<h2 id="references">References</h2>
<ul>
<li>

<a href="https://stackoverflow.com/questions/15769615/remove-last-login-message-for-new-tabs-in-terminal" target="_blank" rel="noopener">https://stackoverflow.com/questions/15769615/remove-last-login-message-for-new-tabs-in-terminal</a></li>
<li>

<a href="https://www.cyberciti.biz/howto/turn-off-the-login-banner-in-linux-unix-with-hushlogin-file/" target="_blank" rel="noopener">https://www.cyberciti.biz/howto/turn-off-the-login-banner-in-linux-unix-with-hushlogin-file/</a></li>
</ul>
]]></content:encoded></item><item><title>Delete All node_modules Directories Recursively in macOS and Linux</title><link>https://nelson.cloud/delete-all-node_modules-directories-recursively-in-macos-and-linux/?ref=rss</link><pubDate>Sun, 14 May 2023 00:00:00 -0700</pubDate><guid>https://nelson.cloud/delete-all-node_modules-directories-recursively-in-macos-and-linux/?ref=rss</guid><description>How to delete all node_modules directories recursively in macOS and Linux systems.</description><content:encoded><![CDATA[<p>We can use the <code>find</code> command to delete a specific directory recursively. This is the command formula:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">find</span> /path/to/starting/directory/ <span class="no">-type</span> d <span class="no">-name</span> <span class="s2">&#34;directory_to_delete&#34;</span> <span class="no">-exec</span> rm <span class="no">-rf</span> <span class="o">{}</span> <span class="se">\;</span></span></span></code></pre></div><p>For example, if we wanted to delete all <code>node_modules</code> directories within the path <code>/projects/javascript/</code>, we would run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">find</span> /projects/javascript/ <span class="no">-type</span> d <span class="no">-name</span> <span class="s2">&#34;node_modules&#34;</span> <span class="no">-exec</span> rm <span class="no">-rf</span> <span class="o">{}</span> <span class="se">\;</span></span></span></code></pre></div><blockquote><p><strong>Note:</strong></p><p>Sometimes the output says:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">find: ./node_modules: No such file or directory</span></span></code></pre></div><p>But the command should still work.</p>
</blockquote>

<p>If you look closely, we&rsquo;re really just executing a command against all <code>node_modules</code> directories in the <code>/projects/javascript/</code> directory (<code>rm -rf</code>). This command can be modified to execute other commands against all <code>node_modules</code> directories, but that is out of the scope of this post :)</p>
]]></content:encoded></item></channel></rss>