Clearing the Terminal
00:00 Now you’re basically on the bottom of your screen. I know on other operating systems or in other terminals, there is a command to clear your terminal so you can start at the top.
00:11
Is there something like this on Windows as well? Yes. Usually what I press is Control + L, which will move it to the top, but it doesn’t clear everything. If you want to clear everything, you can just type clear, the command, press Enter, and now all the previous outputs are gone.
00:29 If you press Control + L, you get the same result as this, but if you scroll up, you’ll see your previous commands. Would you lean to one or the other?
00:39 It depends. Say, for example, I was running a command that had a huge output, and I wanted to inspect all of this output. Sometimes if you’ve got a bunch of commands, one after the other, it can be hard to find where one command started and the other ended.
00:56 If that was the case, I would probably clear the terminal just so I could scroll up to the top or press Control + Home to go to the top, and that will take me to where I previously cleared.
01:07 If I was using Control + L, then that would usually be because they are short commands, and I don’t want to lose that history just yet.
Become a Member to join the conversation.
