But since the command is a bit complicated, it’s better to use it as alias in Linux: alias cls='printf "\033c"' There are a couple of other complicated ways to clear the screen when you want to clear the screen completely. It could take a bit longer than clear command, though. Actually, this command performs a complete terminal re-initialization. You can also use reset command for clearing the terminal screen. Some other terminal emulators have this keyboard shortcut set at Ctrl Shift K. Ctrl L moves the screen one page down giving the illusion of a clean screen but you can still access the command output history by scrolling up. If you use Ctrl L and clear command in GNOME terminal (default in Ubuntu), you’ll notice the difference between their impact. You can use Ctrl L keyboard shortcut in Linux to clear the screen. Clear command is not the only way to clear the terminal screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |