Command Line Tip: Easily Cycle Through Folder Names

Personally, I am a big fan of the command line. From it I can get to just about everything I need pretty fast and I have an extensive set of utilities available at my disposal. One of the things, however, that isn’t so quick is navigating to different directories. If they have long names you have to type them exactly or they won’t take.

If this sounds familiar, here is a quick tip: pressing the TAB key will cycle through all the directory names in your current directory. For example, if you go to the command line and type “cd ” and then the tab key repeatedly, you will see the directory names are dropped in.

This shortcut can be an good time and keystroke saver, especially if you are navigating through the Windows or Program Files directory.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

Discuss This Article (Without Facebook)

4 comments

  1. ooo thanks for that, I prefer the command line – I find it quicker than shagging around with a mouse clicking things – especially on laptops – I despise touchpads.

  2. John Babcock /

    Here’s a little twist to the CD {tab}: if you specify one or more characters before the {tab} then only those directories beginning with those characters will be displayed. Further, the {character(s)} {tab} combination works with many commands: dir /ad d {tab} will allow you to display the contents of directories whose name begins with “d”.

  3. It also works with filenames.

    And if you want, you can change the completion character in:

    HKCU\Software\Microsoft\Command Processor

    It’s easier to change using Tweak UI under “Command Prompt” There you can see what the valid characters are because not all will work.

Leave a Reply

PCMech Insider Cover Images - Subscribe To Get Your Copies!
Learn More
Every week, hundreds of tech enthusiasts, computer owners
and geeks read The Insider, the digital magazine of PCMech.

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: