I am a rookie at using Terminal, and I am acquainting myself with it by simultaneously learning Git on it. Still new to the shortcuts therein, I accidentally pressed Cmd+K, and the whole screen went blank, giving me a little heart-attack when I couldn't "scroll up".
However, checking the git status
and running ls
revealed that nothing had really been "undone".
I couldn't find any info on the web for this command, which is different than Ctrl+L, the clear
command.
Questions:
- What is actually happening when I press Cmd+K?
- Having cleared the screen using Cmd+K, is there any way we can resurrect the commands back on the screen?
Cmd + K
does give what I write in the op. (I am not able to find any "keyboard shortcuts" in the menus of the Terminal.)command + k
plays hell when you mistakenly enter it while working in your editor :P