Tips for switching directories at the command prompt

  

Web page teaching tips: Switch directories at the command prompt.


Although the Windows graphical interface has long replaced the boring DOS character interface (nonsense, Vista is ready to go), but in daily operations, there are still many times when you need to use a command prompt. For example, when batching files, when executing character commands, and when restoring the system under the command line, switching directories is always better than Windows. In fact, Microsoft did not tell you, at the command prompt, there are many tips for directory input.

file names one by one "show" what

The first is a handy shortcut keys "Tab" key. In the Windows XP call up the command prompt window, you try to press the "Tab" button a few times, the file name in the current folder will be displayed one by one, and the subfolder will be displayed after the file is finished. The name.

All subfolders stand out

If you want to switch to a folder, first type "cd" and enter a space bar, then press "Tab". At this point, only the "show" out of all sub-folders will appear in sequence, and the file name will not appear. Even the Chinese folder can automatically show the name in this way!

Tips

If you use the "Shift+Tab" shortcut, the folder names are displayed in reverse order.

Finding a folder based on "Last Name"

If we want to switch to a folder with a name starting with the letter D, you can also type "cd d" first (that is, a space after the cd) , then put the letter at the beginning of the folder), then press the "Tab" button, it will only take turns to show the folder name starting with the letter D, so you can find the target you want quickly.

I know what you just did

In addition, in the command prompt character window, in addition to pressing the keyboard "↑" or "↓" cursor keys, you can call the previously entered commands. In addition, in fact, press the "F7" button, a menu will pop up, and the commands you have entered will be listed, which is more convenient to select (see picture).

Command Prompt Window

Copyright © Windows knowledge All Rights Reserved