firepro20 firepro20 - 7 months ago 31
Bash Question

Sqlite cannot exit after entering ls

I installed SQLite on an Ubuntu Server, started it up and entered ls. Now I'm stuck in ...> as you can see below

sqlite> ls
...>ls
...>^C
...>exit
...>quit


and so on. I cannot exit from the ...> what can I do? Thanks

Answer

CTRL + D will exit program.


To end statement just type ; and ENTER.

sqlite> ls
   ...> a
   ...> 
   ...> 
   ...> ads
   ...> ;
SQL error: near "ls": syntax error