Usa cmd as a linux terminal by activating the command history

Over the years and the versions of Windows, its developer, Microsoft, wants to make things easier for us in its daily use. In this way, what is intended is that we be more productive and get the most out of the operating system at the same time.

In this way, what is also achieved is that Windows is available to everyone, including new users of the software. For all this, Redmond includes increasingly automated and affordable functions that adapt to the needs of the majority. This is something that many of you have been able to see first-hand, even when solving possible problems that occur here.

A good part of the configuration options that we can use at the moment are well distributed in the System Configuration application. We access it through the Win + I key combination where we find the options available in this particular section.

More advanced features of Windows 10

But of course, as you can imagine, not everyone looks for simplicity when they work with their computer in Windows. There are many more advanced users who prefer to have much more control of their equipment at all times. For these, Microsoft also puts at their disposal various somewhat more advanced functionalities in order to give them greater control over the operating system as such.

An example is the case of the command prompt window, also known as the CMD. For those who do not know it, we will tell you that this is a function that Windows itself integrates and that it has been with us for several years and versions of the operating system. It allows you to control some functions integrated into the operating system in a deeper and more advanced way, but yes, based on commands.

To do all this, just open a command prompt window and start working. We do this by typing the CMD command in the search box that we see next to the Start menu. In addition, the best thing to do in most cases is to run this element with administrator permissions.

Command Prompt or CMD utility

Keep in mind that in the past most users tried to avoid using the CMD due to its complexity. But little by little they have been learning more about Windows, so many already dare to face the command line. This is an element that allows us to carry out certain tasks that we cannot do from the graphical interface of the operating system. Although at first it may seem a bit complicated, in reality it is not. In fact, the use of the CMD is increasingly necessary to squeeze Windows to the fullest, in addition we do not need to know all the commands, but only those that really interest us.

Therefore, in the event that you are one of those who regularly use the command prompt or if you want to learn about it, this will be very useful. Specifically in these same lines we are going to teach you some tricks to better control the commands used. Specifically, we refer to being able to easily view the last commands used in this specific section. As we mentioned before, the CMD is a command-based tool. Sometimes there are many that we are going to use and repeat in the same session in the command prompt window. That is why it can be extremely useful to be able to see and use the history of commands used in the same session.

How to view the last used commands in the CMD window

Once we access one of these windows as we showed you before, it is interesting to know that everything we do in that session is being saved. With this, what we want to tell you is that from the moment we open the command prompt window until we close it, a history of the commands we have used is saved. Therefore we have a series of tricks to access all this. For example, in order to view the last command executed, we just have to press the up arrow key. This is something that we can repeat as many times as we want to go back and recover the ones used in the session.

In the same way, if we press the down arrow key, we go in the opposite direction and we retrieve the next one. This is a very convenient method of scrolling through history, but there are other ways. In the event that there are many commands that we have used and we need to access the first one executed in the current session, we can use the DownPag key. Likewise, to see the most recent command, we can also use the RegPag key.

On the other hand, it is interesting to know that if what we want is to see the entire history of the commands executed in the session, we just have to press the F7 key. Next, a small window will appear on the screen where you can see all the commands executed in that CMD session in the order in which we used them at the time.

Other shortcuts to retrieve commands in the CMD

In it we also have the possibility of moving with the arrow keys from one to another until we find the command we are looking for and use it again. In turn, in the case that we know what position a specific command occupies to re-execute, then we can use the keyboard shortcut F9. It will ask us to type the place it occupies and recover it to run it again.

But if what we want is to recover a command that started with a certain set of these letters, what we do is write that character and click on F8. This will show us all the commands executed in that session that begin with that letter or word. In addition, to be able to see these execution orders in alphabetical order, just execute doskey / history.

To finish we will tell you that in order to delete the history that we have used here, we have to press the Alt + F7 key combination.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button