[SOLVED] Command line not working

I hit the Ctrl+C to get to the command line >>> but any command I type has a File “”, Line 1 SyntaxError: invalid Syntax somewhere on the second word. Examples of commands I tried sudo raspi-config, ifconfig, sudo nano, pwd, ls, sudo apt-get …
Some of those reported NameError: name ‘ls’ is not defined.
What am I doing wrong?

Sounds like you are in an interactive Python terminal. If you see >>>, to exit that mode, press ctrl+D. Then, normal commands like ls should start working.

1 Like

Thanx. That fixed it