MASIGNCLEAN104

How to view, save and clear Command Prompt command History in Windows

iklan banner

The Command Prompt is zip but a dark as well as white ascendence work utility that comes out of the box on Windows 10/8/7. But those who know its truthful potential, it is a groovy replacement for many of the users’ third-party software. For example, it tin post away help you lot inwards organizing your difficult drive partitions, exercise a bootable USB drive for you, refresh all the BIOS files, as well as much more. Many administrators as well as ability users tend to brand purpose of multiple commands on this ascendence work to leave of absence their operate done. Today, nosotros volition live on talking close two methods that volition help the user stance their Command Prompt history as well as 1 method to salve that Command Prompt history on Windows 10.

View, save, clear Command Prompt ascendence History

We volition comprehend the next topics:

  1. View using DOSKEY.
  2. View using the F7 key.
  3. Save the Command Prompt History.
  4. Clear ascendence prompt history.

1] View ascendence history using DOSKEY

The Command Prompt is zip but a dark as well as white ascendence work utility that comes out of How to view, salve as well as clear Command Prompt ascendence History inwards Windows

This method is a pretty straightforward one. After you lot bring entered a serial of commands inwards the Command Prompt window, all you lot ask to exercise is instruct inwards the next ascendence within the same Command Prompt window-

doskey /history

After that, you lot volition live on able to banking concern represent all the commands that you lot but entered during that session inwards the Command Prompt inwards the same sequence equally you lot entered it.

You tin post away banking concern represent a hide snippet of the same above.

2] View CMD history using the F7 key

The Command Prompt is zip but a dark as well as white ascendence work utility that comes out of How to view, salve as well as clear Command Prompt ascendence History inwards Windows

This is amend than the DOSKEY method mentioned above. I am non claiming that because this is better, but if you lot but desire to leave of absence dorsum to whatsoever previously executed command, it is actually reliable.

To stance the ascendence history, you lot ask to hitting the F7 key. F7 plant for Command Prompt as well as PowerShell equally well.

This volition atomic number 82 to a minor pop-up to seem amongst the listing of all the previously executed commands inwards the session.

You tin post away purpose the upwardly as well as downward arrow fundamental to navigate through the listing as well as hitting the Enter key to lead whatsoever of them.

2] Save the Command Prompt History

Sometimes, you lot powerfulness ask to leave of absence on a tape of the commands they used inwards a session using the Command Prompt inwards a TXT, HTML, CSV or a RTF file.

For that, you lot tin post away purpose an extension of the DOSKEY command.

The Command Prompt is zip but a dark as well as white ascendence work utility that comes out of How to view, salve as well as clear Command Prompt ascendence History inwards Windows

You but ask to instruct inwards the next ascendence as well as therefore hit  the Enter key,

doskey /HISTORY > SampleHistory.txt

The Command Prompt is zip but a dark as well as white ascendence work utility that comes out of How to view, salve as well as clear Command Prompt ascendence History inwards Windows

Then, your backed upwardly history file volition live on saved inwards a location where you lot executed the ascendence inwards the Command Prompt window.

4] Clear ascendence prompt history using Alt+F7

The simplest agency is to restart the Command Prompt. The ascendence history is cleared automatically every fourth dimension you lot unopen it as well as get-go the ascendence prompt again.

To clear the ascendence history, you lot tin post away alsoe purpose Alt+F7 keyboard shortcut. Alt+F7 plant for Command Prompt as well as PowerShell equally well.

You tin post away likewise delete the ascendence history past times using the Registry Editor. Navigate to the next key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

Next, lead RunMRU as well as erase all the values having a name, a missive of the alphabet of the alphabet inwards the correct pane. After this, right-click on MRUList > Edit, as well as delete the contents of Value data.

More Command Prompt tips & tricks here.


Source: https://www.thewindowsclub.com/
Share This :