TechRepublic : A ZDNet Tech Community

Microsoft Windows

Host: Mark Kaelin
Contact

If you often work from a Microsoft Windows command prompt, chances are you know that you can cycle through a list of all the commands that you’ve typed in a particular session using the up and down arrows on your keyboard. You can also change the size of this history list by clicking the command button in the upper left corner, selecting the Properties command, and then changing the buffer size number on the Options tab under Command History.

By default, the buffer size is set to 50, which means that the command history can potentially contain a lot of commands, making it difficult to cycle through all the commands that you’ve typed by using the up and down arrows on your keyboard. However, there’s an easier way to see all those commands.

At the command prompt, enter the following:

doskey /history

You’ll see a full listing of all the commands that you’ve entered in a current session (Figure A).

Figure A

A list shows my last few commands have beenĀ ping commands

Note: This tip applies to Windows XP Home, Windows XP Professional, and Windows Vista.

Stay on top of the latest XP tips and tricks with TechRepublic’s Windows XP newsletter, delivered every Thursday. Automatically sign up today!

Greg ShultzGreg Shultz is a freelance Technical Writer. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry. Read his full bio and profile.

Print/View all Posts Comments on this blog

Got a favorite Windows tip? Mark W. KaelinTechrepublic Moderator | 04/21/09
Recycled Tip bkamhi@... | 04/22/09
Nope Mark W. KaelinTechrepublic Moderator | 04/23/09
However... Mark A. Lewis | 04/23/09
Re: Doskey dlcomell@... | 04/24/09
Dead DOS antonio.barra@... | 04/24/09
DOS is Windows's DNA tonycopp@... | 09/01/09
First time I've seen it jstribling@... | 04/27/09
multiple session frustration jnickell@... | 04/23/09
History to txt me@... | 04/24/09
Or AC2 | 05/14/09
This applies to XP... chavarinderion50872 | 04/23/09
Windows Tip mcvik@... | 04/23/09
Credit where due... ghabgood | 04/23/09
Ctrl Pnl, etc. Shortcuts, etc. pus....: saved2serve@... | 04/24/09
More Command Prompt Function Keys Kiwi.Dusty | 04/25/09
A better command prompt tcsmith@... | 05/08/09
Use doskey macros to speed cmd work rsp@... | 05/10/09
Help file for DOSKEy lfloyd@... | 08/31/09
Tip for printing lists of files rkanderson@... | 09/01/09
Use ESC to clear the command line in a DOS window dmm99 | 09/02/09
RE: Avoid frustration and display a full Windows command prompt history mytmous | 04/21/09
Very nice .. Andrew Caple | 04/21/09
F7 Key jolivenom | 04/22/09
Fantastic Mark W. KaelinTechrepublic Moderator | 04/22/09
What about cd with wildcards paul.harrison@... | 04/23/09
cd do* greg.ross@... | 04/23/09
Good point paul.harrison@... | 04/23/09
use a tab key william.xu@... | 05/07/09
F7 key antonio.barra@... | 04/22/09
Good Oldie #1 Kenster | 04/22/09
agreed Simon Neil | 04/23/09
How cool is that! jmcgachey@... | 04/23/09
F7 key Jzoltowsky@... | 04/23/09
Nice!! alexisgarcia72@... | 04/23/09
F7 is even better pgovil | 04/23/09
Tab Key for directory/file completion BrettK | 04/23/09
Tab key & wildcards Dirk Klassen | 04/27/09
Shift-Tab to go up the list (NT) eternal949 | 04/30/09
Ignore this dmm99 | 09/02/09
RE: Avoid frustration and display a full Windows command prompt history P∆UL L∆M∆N | 04/23/09
Great LInk! melias@... | 04/23/09
outstanding link luther7 | 04/23/09
great thread randy@... | 04/23/09
RE: Avoid frustration and display a full Windows command prompt history davids@... | 04/23/09
close jnickell@... | 04/24/09
Here's an idea philrunninger@... | 04/24/09
RE: Avoid frustration and display a full Windows command prompt history yesveekey@... | 04/27/09
RE: Avoid frustration and display a full Windows command prompt history peter.p.harper@... | 04/27/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now
500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now

SmartPlanet

Click Here