Stop navigating deep directory trees the hard way
Environment & Shell Customization (Aliases/Functions/.Bashrc)
Stop navigating deep directory trees the hard way
🧩 The Challenge
Everyone has that one deep directory structure they have to visit ten times a day, like /var/lib/docker/volumes/something/data. Typing that out over and over is a complete waste of muscle memory and patience.
💡 The Fix
Use a shell function to create a bookmark system that lets you jump to long paths with a single short command. You’ll save minutes of your day and stop the inevitable typos that happen when you’re tired.
j() { cd /var/log/my-app/complex/path/sub/directory/"$1"; }
⚙️ Why It Works
Adding a positional parameter to the function allows you to quickly reach subdirectories within your primary work location without needing to change your entire workflow. It turns a ten-second navigation chore into a sub-second flick of the fingers.
🚀 Pro-Tip: If you have more than one “home base,” define a few of these functions with different letters so you can bounce between projects instantly.
Linux Tips & Tricks | © ngelinux.com | 9/22/2026
