<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>RhysU</author><text>I have an &amp;quot;mkcd&amp;quot; function in my startup files:&lt;p&gt;mkcd() { mkdir -vp &amp;quot;$1&amp;quot; &amp;amp;&amp;amp; cd    &amp;quot;$1&amp;quot;; }</text><parent_chain><item><author>Normille</author><text>I upvoted for this alone:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be

  mkdir -p make&amp;#x2F;new&amp;#x2F;directory
  cd !$
&lt;/code&gt;&lt;/pre&gt;
You&amp;#x27;ve no idea how many years I&amp;#x27;ve been thinking &lt;i&gt;&amp;quot;This is Linux fer gawd&amp;#x27;s sake. Surely there must be some easy way to make a new directory and &amp;#x27;cd&amp;#x27; to it in a single command!&amp;quot;&lt;/i&gt; But was never able to find or guess the right incantation.</text></item></parent_chain></comment><story><title>How to navigate directories faster with Bash (2015)</title><url>https://mhoffman.github.io/2015/05/21/how-to-navigate-directories-with-the-shell.html</url></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>W0lf</author><text>For this exact use case I defined the following many years ago in my bash profile:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    # create a new directory and enter it
    function mkd() {
        mkdir -p &amp;quot;$@&amp;quot; &amp;amp;&amp;amp; cd &amp;quot;$_&amp;quot;;
    }
&lt;/code&gt;&lt;/pre&gt;
And use it like: mkd foo</text><parent_chain><item><author>Normille</author><text>I upvoted for this alone:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be

  mkdir -p make&amp;#x2F;new&amp;#x2F;directory
  cd !$
&lt;/code&gt;&lt;/pre&gt;
You&amp;#x27;ve no idea how many years I&amp;#x27;ve been thinking &lt;i&gt;&amp;quot;This is Linux fer gawd&amp;#x27;s sake. Surely there must be some easy way to make a new directory and &amp;#x27;cd&amp;#x27; to it in a single command!&amp;quot;&lt;/i&gt; But was never able to find or guess the right incantation.</text></item></parent_chain></comment><story><title>How to navigate directories faster with Bash (2015)</title><url>https://mhoffman.github.io/2015/05/21/how-to-navigate-directories-with-the-shell.html</url></story>