When I type “python” and return in shell, the following lines will come out:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
How to surpress these lines please?
An easy way is to call Python as
python -i -c "". This will also disable any start-up scripts, though. If you have a start-up script, you can also usepython -i ~/.pythonrc.py(or however that script is named).