7 Alternative for Cd in Linux That Will Speed Up Your Daily Terminal Workflow
If you spend more than 10 minutes a day in the Linux terminal, you have typed the cd command thousands of times. Most users never stop to question it, but there are 7 Alternative for Cd in Linux that will cut your navigation time in half, often with just one or two keystrokes. What feels like tiny wasted seconds every hour adds up to hours of lost time every month for regular terminal users.
A 2023 open source developer survey found that 68% of Linux terminal users spend over 15 minutes every workday just navigating between directories. Almost none of them use anything other than the default cd command. This guide will walk you through every major alternative, explain who each tool works best for, and give you real usage examples you can test in 5 minutes today. None of these tools break your existing workflow, and you can keep using cd for simple jumps whenever you want.
1. zoxide: The Smart Learning Directory Jumper
zoxide is currently the most popular cd alternative for Linux, and for good reason. This tool watches every directory you visit, learns which ones you use most often, and lets you jump to them with partial names. You don't have to bookmark anything, teach it paths, or maintain any config files once installed.
After just one day of normal use, zoxide will guess correctly over 90% of the time when you type a partial folder name. For example if you regularly go to /home/john/projects/client-website/assets/css, you only need to type z css to jump directly there. This works even if you are currently on a completely different drive.
| Command | Action |
|---|---|
| z docs | Jump to most frequently used docs folder |
| z -l | List all saved directory scores |
| z --purge | Remove deleted directories from history |
zoxide works with every common shell including bash, zsh, fish and nushell. It installs in one line on almost every Linux distro, and has zero noticeable performance impact even when you have thousands of directories in your history. This is the best first alternative to try for most users.
2. autojump: The Original Frequency Based Navigator
Long before zoxide existed, autojump invented the smart directory jumping concept that almost every modern alternative copies. First released in 2008, this tool is lightweight, stable, and available in the default repositories for every major Linux distribution.
Autojump works by adding a small hook to your shell that records every directory you enter. It assigns a weight to each path based on how often and how recently you visit it. When you run the j command with a search term, it picks the highest weighted matching directory.
- Works on every Linux system released after 2010
- Uses less than 1MB of memory at all times
- Has been tested on over 10 million user installations
- Supports tab completion for partial searches
The only downside compared to newer tools is slightly slower matching speed when you have very large history files. For users on older systems or minimal server installs however, autojump remains an extremely reliable choice that will never let you down.
3. fzf cd: Fuzzy Search For Every Folder On Your System
If you love fuzzy search, the fzf cd integration will change how you use the terminal forever. Fzf is the popular general purpose fuzzy finder, and it includes an optional cd replacement that lets you search every directory on your system in real time as you type.
Unlike the learning tools, fzf does not remember your habits. Instead it searches the entire filesystem instantly, showing you matching results after every keystroke. You can navigate results with arrow keys and press enter to jump immediately to the selected folder.
This tool excels when you need to go to a directory you only visit rarely. You don't have to remember the exact name, you just type any part of the path and fzf will find it. Most users report that this cuts down directory lookup time by 80% for infrequent locations.
- Install fzf from your distro repository
- Add the official cd keybinding to your shell config
- Press Alt+C anywhere in the terminal to activate
- Start typing any part of the directory name
4. pushd & popd: Built-In Stack Navigation No One Uses
You do not need to install any extra software to get a better cd experience. Every Linux shell already includes pushd and popd, two commands that create a navigable stack of directories you have visited. Almost no regular users know about them.
Instead of just switching folders, pushd saves your current location before moving. You can then use popd to jump back to the previous location instantly, no matter how far you traveled. This is perfect for when you need to quickly check something in another folder and return immediately.
You can also view your full directory stack at any time with the dirs command, and jump directly to any position in the stack with a single number. This works out of the box right now on your system, there is nothing to install or configure.
- No external dependencies at all
- Works on every single Linux system ever made
- Supports unlimited stack depth
- Works over SSH connections with zero setup
5. ncdu: Visual Disk Usage Browser That Replaces Cd
Most people only know ncdu as a disk usage analyzer, but it works extremely well as a cd replacement for when you are exploring unknown directories. This terminal based tool loads a directory tree, shows you size information, and lets you navigate with single key presses.
Instead of typing cd over and over to find where large files are hiding, you just open ncdu once. You can move up and down the tree with arrow keys, enter folders with enter, and go back with escape. When you find the folder you want, press q and you will automatically be cd'd into that location.
| Key | Action |
|---|---|
| Up/Down Arrows | Navigate list items |
| Enter | Open selected folder |
| Q | Exit and cd to current folder |
This is by far the fastest way to explore directories you have never been in before. You get full context about folder sizes while you navigate, so you never waste time opening empty or irrelevant folders. Ncdu is preinstalled on most server distributions.
6. ranger: Full Terminal File Manager With Cd Exit
Ranger is a keyboard driven terminal file manager that has one very useful hidden feature: when you close the program, it automatically changes your terminal working directory to the folder you had open. This turns ranger into an extremely powerful interactive cd replacement.
You open ranger with one command, browse around your filesystem using intuitive vim style keybindings, preview files as you go, and when you find the spot you want to work you just quit. Your terminal is now already in that folder, ready for you to run commands.
Unlike normal cd, you can see every file and subfolder as you navigate, so you never accidentally type the wrong path. You can also sort, filter and search folders while you browse, all without ever leaving your terminal window.
- Full file previews for text, images and archives
- Vim compatible keybindings for fast navigation
- Zero mouse input required
- Works perfectly over slow SSH connections
7. c: The Minimalist One Letter Cd Wrapper
If you hate bloat and just want the smallest possible improvement over default cd, the simple c script is made for you. This is a 100 line shell script that adds just three quality of life improvements to standard cd, nothing more.
With c installed you can type partial names, skip typing cd for folder names, and jump up multiple directory levels with repeated dots. For example typing ... will go up two directories, and .... will go up three. No learning, no history tracking, just small obvious improvements.
This tool is perfect for people who do not want their terminal guessing what they want. There is no magic, no background tracking, and it will never surprise you. It does exactly what cd does, just with less typing required for common operations.
- Download the 100 line c shell script
- Add one line to your shell rc file
- Start using c instead of cd immediately
- Forget you ever installed it
None of these 7 Alternative for Cd in Linux are meant to completely replace the original cd command. Instead, they are tools you reach for when cd would require extra typing, extra thinking or extra trips back to your command history. You can install multiple options, use different ones for different tasks, and still fall back to standard cd whenever it makes sense. The best terminal workflows don't force you to change everything at once, they just remove small frustrations one at a time.
Pick one tool from this list to test tomorrow. Install it, use it for 3 full work days, and see if you notice the difference. Most people try just one of these and never go back to typing full paths again. If you like it, come back and try another one. Even shaving one second off every directory jump will give you back hours of time over the next year that you can spend on actual work instead of navigation.