- Techie Buzz - http://techie-buzz.com -

Useful Command Prompt Shortcut Keys

Posted By Keith Dsouza On March 19, 2008 @ 11:48 am In Tips And Tricks | 5 Comments

Amit from Digital Inspiration has put up a list of useful dos command shortcuts [1] which will make your life much easier while using the command prompt. There are two shortcuts I am particularly happy at finding out.

F7 Key Shortcut

Pressing the F7 key will show you a list of commands you had typed in earlier, very useful if you repeat the same commands over and over again and dread typing them.

command-promtpt-f7-shortuct

F1 and F2 shortcut keys

Typing in long commands can always result in mistakes in order to correct those mistakes you may have to type in the whole command again. Instead of typing in the whole command again you can simply press the F1 key and it output one character at a time from the previous command. if you think that is slow you can use the F2 key which will prompt you the number of characters you want to copy from the previous command.

command-promtpt-f2-shortuct

Bonus Tips

Copying from a command prompt is not always easy and you have to always right click the command prompt and then select mark to copy the text. Many popular Linux shell clients like putty [2] and cygwin allow you to easily copy the text by selecting it with your mouse, in fact it auto copies the selected text which turns out to be pretty useful.

If you want to get the same functionality for the Windows command prompt you can do so easily by following the instructions below.

Open the command prompt properties

command-prompt-properties

Select the Quick Edit mode

command-prompt-quick-edit

Once you have have done that click on Ok button. In some instance you may be prompted to choose to either limit your changes to the session or apply it to all future command windows that you may use. Choose the latter so that you do not have to do this again and again.

command-prompt-apply [3]

Once you have done that you can now select any text on the command prompt by simply using your mouse.

command-prompt-select-text [4]

Note simply selecting the text will not copy it, you will have to hit the return [enter] button once you have made your selection for it to be copied.

Well hope these tips make your life easier using the dos command prompt. Let me know your views about these.

Technorati Tags: dos [5],command prompt [6],command shortcuts [7],dos shortcuts [8]

Article printed from Techie Buzz: http://techie-buzz.com

URL to article: http://techie-buzz.com/tips-and-tricks/useful-command-prompt-shortcut-keys.html

URLs in this post:

[1] useful dos command shortcuts: http://www.labnol.org/software/tutorials/useful-keyboard-shortcuts-for-the-dos-command-prompt-in-windows/2629/

[2] putty: http://techie-buzz.com/utilites/putty-tray-can-putty-get-any-snazzier.html

[3] Image: http://cache.techie-buzz.com/images/posts/2008/03/command-prompt-apply.png

[4] Image: http://cache.techie-buzz.com/images/posts/2008/03/command-prompt-select-text.png

[5] dos: http://technorati.com/tags/dos

[6] command prompt: http://technorati.com/tags/command%20prompt

[7] command shortcuts: http://technorati.com/tags/command%20shortcuts

[8] dos shortcuts: http://technorati.com/tags/dos%20shortcuts

Copyright © 2009Techie Buzz. All rights reserved.