CALL US

+91 8219776763

How to use our Command History in the Windows Command prompt? | Cyberops

How to use our Command History in the Windows Command prompt?

By Prempal Singh 0 Comment March 14, 2017

The Windows Command Prompt has built in history feature, which allows us to the view of commands that we have run. Even the command Prompt offers some keyboard shortcuts and some another trick for working with the command history.

How to consider our Command History:

We have some command history that can use for keyboard shortcuts:

1. Up Arrow:  Press the key to recall the previous command.

2. Down arrow:  Press the key to recall the next command.

3. Page Up:  Press the key to recall the first command that we currently run in Command Prompt session.

4.  Page down: Press the key to recall the recent command that we currently run in Command Prompt session.

5. ESC: Press the key to clear the command line.

Use the F keys to interact the command history:

1. F7:  Press the key to consider the command history.  And also use the up and down arrow keys to select the command and run it.

2. F8:  This key is used to search our command history for command matching and text on the current command line.

3. F9:  This key is used to recall the command from our command history by specific numbers from History buffer.

How to make a replica in our previous command:

1. F1: Press the key to copy one character at a time from command previously typed character by character.

2. F2: This key is used for copy the command that we previously typed.  The system that will search forward in the previous command.

3. F3: Press the key to copy the command that we previously typed.  And the system will start from current character position that is copied the remainder of the text from that position on the previous line.

  1. How to clear the Command History:

Unlike the Linux’s bash shell, the command prompt does not remember commands between sessions. To delete the command history we have to type the command:

1.  doskey /listsize=0:

We would not be able to use any kind of keys or doskey /history command. It will change the current command prompt windows.

2. cls:

We can use this command to clear our command prompt window and also erasing all history.

How to save our Command History:

The history of a command in a command prompt windows can be running by doskey /history command output’s routing to a text file.

The > character give the output of the command to a specific file.

When we open the file in a text editor to the view of command’s history in command prompt session.

I hope this article is helpful for you, and subscribe us for more latest update.

error: Content is protected by Cyberops !!