Command Prompt Tip–Autocomplete similar command

Console Windows have had TAB key completion for a while now. That is, pressing the TAB key at the command prompt will insert the closest matching filename.

While this is helpful for specifying file name parameters sometimes what you’d really rather do is insert an entire command. You can go through commands recently entered with the up and down arrows.

I recently discovered another way to insert an entire command. If you type the first few letters of the command then press F8 the closest matching command in the command history will be inserted! This is a great way to cut down on the amount of typing involved, especially when it comes to long commands with lots of parameters.

No comments:

Post a Comment