<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CLI on Nerdsid.com</title><link>https://nerdsid.com/tags/cli/</link><description>Recent content in CLI on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 30 Jun 2026 11:41:54 +0000</lastBuildDate><atom:link href="https://nerdsid.com/tags/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>Practical Grep: Filtering Errors and Patterns in Log Files</title><link>https://nerdsid.com/posts/practical-grep-filtering-errors-and-patterns-in-log-files/</link><pubDate>Tue, 30 Jun 2026 11:41:54 +0000</pubDate><guid>https://nerdsid.com/posts/practical-grep-filtering-errors-and-patterns-in-log-files/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>This walkthrough covers using grep to search and filter log files for errors, specific requests, and multi-pattern matches.&lt;/p>
&lt;h2 id="tasks">Tasks&lt;/h2>
&lt;ol>
&lt;li>Find all &lt;code>ERROR&lt;/code> messages in &lt;code>system.log&lt;/code> and count how many there are.&lt;/li>
&lt;li>Find all lines containing &lt;code>POST&lt;/code> requests in &lt;code>access.log&lt;/code>.&lt;/li>
&lt;li>Find all lines in &lt;code>application.log&lt;/code> that contain both &lt;code>WARNING&lt;/code> and &lt;code>query&lt;/code> (case-insensitive).&lt;/li>
&lt;li>Search for all user authentications (containing &lt;code>User authenticated&lt;/code>) across all log files.&lt;/li>
&lt;/ol>
&lt;h3 id="requirements">Requirements&lt;/h3>
&lt;ul>
&lt;li>Use &lt;code>grep&lt;/code> for all searches (combining with other commands like &lt;code>wc&lt;/code> where needed).&lt;/li>
&lt;li>Save each task&amp;rsquo;s output to its own file: &lt;code>task1_output.txt&lt;/code>, &lt;code>task2_output.txt&lt;/code>, &lt;code>task3_output.txt&lt;/code>, &lt;code>task4_output.txt&lt;/code>.&lt;/li>
&lt;li>Original log files must not be modified.&lt;/li>
&lt;/ul>
&lt;h2 id="solution">Solution&lt;/h2>
&lt;h3 id="task-1">Task 1&lt;/h3>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">grep -c &lt;span class="s2">&amp;#34;ERROR&amp;#34;&lt;/span> system.log &amp;gt; task1_output.txt&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>&lt;code>grep -c&lt;/code> counts the number of matching lines instead of printing them. Redirecting the output saves the count to task1_output.txt.&lt;/p></description></item><item><title>Docker Basic Commands</title><link>https://nerdsid.com/posts/docker-basic-commands/</link><pubDate>Mon, 01 Jun 2026 12:33:56 +0000</pubDate><guid>https://nerdsid.com/posts/docker-basic-commands/</guid><description>&lt;h2 id="task-1">Task 1&lt;/h2>
&lt;p>What is the version of the Docker Server Engine running on the host?&lt;/p>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;figcaption class="terminal-title">Check Docker version&lt;/figcaption>
 
 &lt;/header>
 &lt;pre>&lt;code>$ docker version

Client:
Version: 25.0.5
API version: 1.44

Server:
Engine:
Version: 25.0.5
API version: 1.44&lt;/code>&lt;/pre>
&lt;/figure>

&lt;p>&lt;strong>Answer:&lt;/strong> &lt;code>25.0.5&lt;/code>&lt;/p>
&lt;h2 id="task-2">Task 2&lt;/h2>
&lt;p>How many containers are currently running on this host?&lt;/p>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;figcaption class="terminal-title">List running containers&lt;/figcaption>
 
 &lt;/header>
 &lt;pre>&lt;code>$ docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES&lt;/code>&lt;/pre>
&lt;/figure>

&lt;p>&lt;strong>Answer:&lt;/strong> &lt;code>0&lt;/code>&lt;/p>
&lt;h2 id="task-3">Task 3&lt;/h2>
&lt;p>How many images are available on this host?&lt;/p></description></item><item><title>Linux Commands Cheat Sheet (Most Used Commands)</title><link>https://nerdsid.com/posts/linux-commands-cheatsheet/</link><pubDate>Fri, 03 Apr 2026 07:32:28 +0530</pubDate><guid>https://nerdsid.com/posts/linux-commands-cheatsheet/</guid><description>&lt;h2 id="table-of-contents">Table of Contents&lt;/h2>
&lt;ul>
&lt;li>Disk Usage / File Analysis&lt;/li>
&lt;li>AWS S3 commands&lt;/li>
&lt;/ul>
&lt;h2 id="disk-usage--file-analysis">Disk Usage / File Analysis&lt;/h2>
&lt;h3 id="find-out-space-taken-by-files-older-than-5-days">Find out space taken by files older than 5 days&lt;/h3>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">find . -type f -mtime +5 -print0 &lt;span class="p">|&lt;/span> du --files0-from&lt;span class="o">=&lt;/span>- -ch &lt;span class="p">|&lt;/span> grep total&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h3 id="keep-last-100d-fies">Keep last 100d fies&lt;/h3>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ls -t &lt;span class="p">|&lt;/span> sed -e &lt;span class="s1">&amp;#39;1,100d&amp;#39;&lt;/span> &lt;span class="p">|&lt;/span> xargs -d &lt;span class="s1">&amp;#39;\n&amp;#39;&lt;/span> rm -f --&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>





&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">truncate -s 50M catalina.out&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>





&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ls -d */&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h3 id="find-out-year-month-of-files">Find out Year month of files&lt;/h3>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">stat -c &lt;span class="s1">&amp;#39;%y&amp;#39;&lt;/span> * &lt;span class="p">|&lt;/span> awk &lt;span class="s1">&amp;#39;{print $1}&amp;#39;&lt;/span> &lt;span class="p">|&lt;/span> xargs -I&lt;span class="o">{}&lt;/span> date -d &lt;span class="o">{}&lt;/span> &lt;span class="s2">&amp;#34;+%b %Y&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> sort -u&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h3 id="list-all-files-other-than-gz">List all files other than &lt;code>.gz&lt;/code>&lt;/h3>
&lt;p>If you want this to do recursively:&lt;/p></description></item><item><title>Grep Failing on Hyphen Patterns? Try This Fix</title><link>https://nerdsid.com/posts/grep-failing-on-hyphen-patterns-try-this-fix/</link><pubDate>Fri, 05 Dec 2025 18:48:38 +0530</pubDate><guid>https://nerdsid.com/posts/grep-failing-on-hyphen-patterns-try-this-fix/</guid><description>&lt;p>Today I was searching for &lt;code>--debug&lt;/code> in a log file.&lt;/p>
&lt;p>So, I ran &lt;code>grep &amp;quot;--debug&amp;quot; file.log&lt;/code>.&lt;/p>
&lt;p>To my utter surprise, instead of seeing a match, I got this error:&lt;/p>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;figcaption class="terminal-title">grep output&lt;/figcaption>
 
 &lt;/header>
 &lt;pre>&lt;code>
grep: unrecognized option '--debug'
Usage: grep [OPTION]... PATTERNS [FILE]...&lt;/code>&lt;/pre>
&lt;/figure>

&lt;p>I didn&amp;rsquo;t expect to see any error because I had quoted the pattern (&lt;code>&amp;quot;--debug&amp;quot;&lt;/code>).&lt;/p>
&lt;p>After few minutes of searching, I found the fix:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">grep -- --debug file.log&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>This is where the humble double hyphen &lt;code>--&lt;/code> steps in.&lt;/p></description></item><item><title>Why git add Wildcard Won’t Stage Your Nested Files (And How to Fix It)</title><link>https://nerdsid.com/posts/why-git-add-wildcard-wont-stage-nested-files/</link><pubDate>Sun, 26 Oct 2025 14:54:48 +0530</pubDate><guid>https://nerdsid.com/posts/why-git-add-wildcard-wont-stage-nested-files/</guid><description>&lt;p>I recently ran into an issue while working with Git. I had a bunch of Markdown files spread across multiple nested folders and wanted to stage them all at once. So I ran:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git add *.md&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>But only the &lt;code>.md&lt;/code> files in the current directory got added (to the staging area). The &lt;code>.md&lt;/code> files in the nested directories didn&amp;rsquo;t get added.&lt;/p>
&lt;p>The root casue: the &lt;code>*&lt;/code> wildcard isn’t processed by Git, but by the shell. So the shell was only matching them in the current folder. What a revelation!&lt;/p></description></item><item><title>4 Ways to Watch Logs Live in Linux</title><link>https://nerdsid.com/posts/watch-logs-live-in-linux/</link><pubDate>Wed, 15 Oct 2025 12:49:55 +0530</pubDate><guid>https://nerdsid.com/posts/watch-logs-live-in-linux/</guid><description>&lt;h2 id="1-tail--f">1. &lt;code>tail -f&lt;/code>&lt;/h2>
&lt;p>&lt;strong>Use when:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>You want to quickly stream a log file.&lt;/li>
&lt;li>You want to perform short, one-off checks on a single log file.&lt;/li>
&lt;/ul>
&lt;!-- - Great for one-off checks, ad-hoc debugging (like checking `nginx/access.log` or `app.log`). -->
&lt;p>&lt;strong>Availibility&lt;/strong>: available on all Linux/Unix systems.&lt;/p>
&lt;p>&lt;strong>Example:&lt;/strong>&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">tail -f /var/log/syslog&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="2-tail--f">2. &lt;code>tail -F&lt;/code>&lt;/h2>
&lt;p>Some services (like Nginx, Apache) &lt;strong>rotate logs&lt;/strong> i.e. they stop writing logs to an old file and instead write to a new file (named sequentially).
&lt;code>tail -f&lt;/code> stops following when that happens, but &lt;code>tail -F&lt;/code> automatically switches to the new file. In other words, it handles log rotation gracefully.&lt;/p></description></item><item><title>Shortcuts to Navigate in a Terminal</title><link>https://nerdsid.com/posts/shortcuts-to-navigate-in-a-terminal/</link><pubDate>Wed, 13 Sep 2023 16:51:56 +0530</pubDate><guid>https://nerdsid.com/posts/shortcuts-to-navigate-in-a-terminal/</guid><description>&lt;p>Like in any other text based program, linux terminals also support usage of arrow keys, backspace to navigate and edit text. But there are some shortcuts which can replace multiple use of arrow keys and simplify user experience. Following table lists some shortcuts.&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Shortcut&lt;/th>
 &lt;th>Action&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>Ctrl+A&lt;/td>
 &lt;td>Jump to the beginning of the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+E&lt;/td>
 &lt;td>Jump to the end of the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+U&lt;/td>
 &lt;td>Clear from the cursor to the beginning of the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+K&lt;/td>
 &lt;td>Clear from the cursor to the end of the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+LeftArrow&lt;/td>
 &lt;td>Jump to the beginning of the previous word on the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+RightArrow&lt;/td>
 &lt;td>Jump to the end of the next word on the command line.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Ctrl+R&lt;/td>
 &lt;td>Search the history list of commands for a pattern.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>More such shortcuts can be found in the bash man page.&lt;/p></description></item><item><title>Command to Get a Count of Python Dependencies</title><link>https://nerdsid.com/posts/single-command-to-get-count-of-python-dependencies/</link><pubDate>Sat, 22 Apr 2023 00:00:00 +0530</pubDate><guid>https://nerdsid.com/posts/single-command-to-get-count-of-python-dependencies/</guid><description>&lt;p>From the root of your project run:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip freeze --all &lt;span class="p">|&lt;/span> wc -l&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>This will return a number which indicates the total no. of dependencies of your Python project.&lt;/p></description></item><item><title>One Line Command to Create an SSH Key</title><link>https://nerdsid.com/posts/one-line-command-to-create-ssh-key/</link><pubDate>Thu, 30 Mar 2023 00:00:00 -0800</pubDate><guid>https://nerdsid.com/posts/one-line-command-to-create-ssh-key/</guid><description>&lt;p>Of late, I have been creating a lot of SSH keys. I am tired of answering each question that one gets asked during such a process. So, I thought of looking up all the switches (options) for the &lt;code>ssh-keygen&lt;/code> command so that I can specify everything at once.&lt;/p>
&lt;p>Here is the command:&lt;/p>
&lt;p>For bash:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 POWERSHELL
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">ssh-keygen&lt;/span> &lt;span class="n">-t&lt;/span> &lt;span class="n">ed25519&lt;/span> &lt;span class="n">-b&lt;/span> &lt;span class="mf">4096&lt;/span> &lt;span class="n">-C&lt;/span> &lt;span class="s2">&amp;#34;you@mail.com for Gitlab&amp;#34;&lt;/span> &lt;span class="n">-N&lt;/span> &lt;span class="s2">&amp;#34;&amp;#34;&lt;/span> &lt;span class="o">-f&lt;/span> &lt;span class="s2">&amp;#34;/home/usr/.ssh/key&amp;#34;&lt;/span> &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>For powershell:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 POWERSHELL
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">ssh-keygen&lt;/span> &lt;span class="n">-t&lt;/span> &lt;span class="n">ed25519&lt;/span> &lt;span class="n">-b&lt;/span> &lt;span class="mf">4096&lt;/span> &lt;span class="n">-C&lt;/span> &lt;span class="s2">&amp;#34;you@mail.com for Gitlab&amp;#34;&lt;/span> &lt;span class="n">-N&lt;/span> &lt;span class="s1">&amp;#39;&amp;#34;&amp;#34;&amp;#39;&lt;/span> &lt;span class="o">-f&lt;/span> &lt;span class="s2">&amp;#34;C:\Users\uname\.ssh\keyname&amp;#34;&lt;/span> &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="description">Description&lt;/h2>
&lt;p>The above command generates an SSH key pair using the &lt;code>ed25519&lt;/code> algorithm with a 4096-bit key length, and saves the private and public keys with the specified name (and location).&lt;/p></description></item><item><title>View Files Changed in Git Commits</title><link>https://nerdsid.com/posts/view-details-of-files-in-git-commits/</link><pubDate>Thu, 16 Mar 2023 00:00:00 +0530</pubDate><guid>https://nerdsid.com/posts/view-details-of-files-in-git-commits/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>I recently got into a situation, where changes made to a file was committed, but I was not sure which commit captured those changes. So, I wanted to know the files changed in past commits. One of the easiest way to do this is to simply check the history of your repo on GitHub or GitLab etc. But I didn&amp;rsquo;t push my local commits, since I wanted to ensure that things are perfect before I push. I found the following commands to be useful in this regard.&lt;/p></description></item><item><title>How to Exclude Files When Using git add</title><link>https://nerdsid.com/posts/optimizing-your-git-workflow-excluding-files-during-git-add/</link><pubDate>Tue, 22 Nov 2022 23:33:25 +0530</pubDate><guid>https://nerdsid.com/posts/optimizing-your-git-workflow-excluding-files-during-git-add/</guid><description>&lt;h2 id="problem">Problem&lt;/h2>
&lt;p>Sometimes you want to add all files to git except some files or folders.&lt;/p>
&lt;h2 id="solution">Solution&lt;/h2>
&lt;p>You can use the &lt;code>:(exclude)&lt;/code> syntax to exclude files or folders from the &lt;code>git add&lt;/code> command. The &lt;code>:(exclude)&lt;/code> pathspec modifier is a special syntax that allows you to exclude files or folders. A pathspec is a way to specify files in Git. It is a string that describes a set of files. You can use wildcards to match multiple files. For example, &lt;code>*.html&lt;/code> matches all html files. &lt;code>**/*.html&lt;/code> matches all html files in all subfolders.&lt;/p></description></item><item><title>Equivalent of Linux Commands in Powershell</title><link>https://nerdsid.com/posts/equivalent-of-linux-commands-in-powershell/</link><pubDate>Wed, 26 Oct 2022 17:54:30 +0530</pubDate><guid>https://nerdsid.com/posts/equivalent-of-linux-commands-in-powershell/</guid><description>&lt;p>Being an avid linux user, I am used to the linux commands. But I often work on a windows machine, which is when I look for powershell equivalent of linux commands.&lt;/p>
&lt;p>I created this post to keep a track of the commands that I use often.&lt;/p>
&lt;h2 id="well-known-linux-commands-and-their-powershell-equivalents">Well-known linux commands and their powershell equivalents&lt;/h2>
&lt;p>The PowerShell commands for working with the file system are same as that of linux ones. You navigate around the file system with the &lt;code>cd&lt;/code> (alias for &lt;code>Set-Location&lt;/code>) command.&lt;/p></description></item></channel></rss>