Title: Description: Quickly go back to a specific parent directory in bash instead of typing &quot;cd ..&#x2F;..&#x2F;..&quot; redundantly.<p>How to use:<p>If you are in this path &#x2F;home&#x2F;user&#x2F;project&#x2F;src&#x2F;org&#x2F;main&#x2F;site&#x2F;utils&#x2F;file&#x2F;reader&#x2F;whatever and you want to go to site directory quickly, then just type: &#x27;bd site&#x27;<p>In fact, You can simply type &#x27;bd &lt;starting few letters&gt;&#x27; like &#x27;bd s&#x27; or &#x27;bd si&#x27;<p>If there are more than one directories with same name up in the hierarchy, bd will take you to the closest. (Not considering the immediate parent.)<p>Using bd within backticks (`bd &lt;letter(s)&gt;`) prints out the path without changing the current directory.<p>You can take advantage of that by combining `bd &lt;letter(s)&gt;` with other commands such as ls, ln, echo, zip, tar etc..<p>Check out the screenshot.
Upvote: