Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a command to clear screen in SQLite3?

Tags:

sqlite

I have googled it and some says type cls then enter.

But I have tried all :

"cls .cls cls; .cls;" 

But no luck

Am I wrong or there is no cls command in sqlite3?

like image 933
saeed Avatar asked Feb 06 '14 23:02

saeed


People also ask

What is the command for clearing screen?

In computing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exe on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them.

Which command will clear the terminal screen?

You can use Ctrl+L keyboard shortcut in Linux to clear the screen. It works in most terminal emulators.

What is sqlite3 command?

sqlite3 is a terminal-based front-end to the SQLite library that can evaluate queries interactively and display the results in multiple formats. sqlite3 can also be used within shell scripts and other applications to provide batch processing features.


Video Answer


2 Answers

To execute CLS command in the SQLite3 shell you need to do this: .shell cls

As simple as that, .shell args... allows you to execute CMD commands in the SQLite3 shell.

like image 176
ivan0590 Avatar answered Sep 19 '22 00:09

ivan0590


There is no clear command in the SQLite command-line client.

But, if you're on a unix-based system (includes Mac OS X) you can use: Ctrl+L

Update:
While my answer is quick and simple, if you're on a compatible OS, make sure you also check out ivan0590's answer about the .shell command. Definitely a "good to know" as well.

like image 38
Timeout Avatar answered Sep 18 '22 00:09

Timeout