In the Windows command line, press the F7 key to view a history of all the commands that have been entered in that window.
Pressing the up or down keys allows you to browse through all commands and once highlighted pressing enter will perform the previous command.
Using DOS doskey command
Doskey is an MS-DOS utility that allows a user to keep a history of commands used on the computer. Doskey allows frequently used commands to be used without having to type the command each time its needed.
Syntax:
Pressing the up or down keys allows you to browse through all commands and once highlighted pressing enter will perform the previous command.
Using DOS doskey command
Doskey is an MS-DOS utility that allows a user to keep a history of commands used on the computer. Doskey allows frequently used commands to be used without having to type the command each time its needed.
Syntax:
DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS[:ALL | :exename]] [/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename] [macroname=[text]]
| /REINSTALL | Installs a new copy of Doskey. |
| /LISTSIZE=size | Sets size of command history buffer. |
| /MACROS | Displays all Doskey macros. |
| /MACROS:ALL | Displays all Doskey macros for all executables which have Doskey macros. |
| /MACROS:exename | Displays all Doskey macros for the given executable. |
| /HISTORY | Displays all commands stored in memory. |
| /INSERT | Specifies that new text you type is inserted in old text. |
| /OVERSTRIKE | Specifies that new text overwrites old text. |
| /EXENAME=exename | Specifies the executable. |
| /MACROFILE=filename | Specifies a file of macros to install. |
| macroname | Specifies a name for a macro you create. |
| text | Specifies commands you want to record. |
UP and DOWN ARROWS recall commands; ESC clears
command line; F7 displays command history; ALT+F7 clears command
history; F8 searches command history; F9 selects a command by number;
ALT+F10 clears macro definitions.
At the command prompt, enter the following command:
When you do so, you'll see a full listing of all the commands that you've entered in a current session.
At the command prompt, enter the following command:
DOSKEY /history
When you do so, you'll see a full listing of all the commands that you've entered in a current session.
Comments
Post a Comment