Stephen Boston
Stephen Boston

Reputation: 1199

disable python greeting/version info

When I start a python interactive session from the command line I am greeted by :

 Python 3.9.6 (default, Jun 30 2021, 10:22:16) 
 [GCC 11.1.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.

Is there a way of disabling that message so that I go immediately to the >>> prompt?

Upvotes: 1

Views: 114

Answers (1)

Eladtopaz
Eladtopaz

Reputation: 1054

Yes, there is a way to do so. Type in the cmd:

python -q

instead of

python

and this should do the trick.

Upvotes: 4

Related Questions