Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exit when viewing python help like help(os.listdir)

Tags:

python

when the help window pops up, what are the basic commands (mac os) to page up/down, end of document and exiting the help screen?

I just had to close my terminal as I couldn't figure it out!

like image 439
Blankman Avatar asked Jun 20 '10 19:06

Blankman


People also ask

How do I get out of python help mode?

If no argument is passed, Python's help utility (interactive help system) starts on the console. To quit the help utility and return to the interpreter, you need to type quit and press enter.

How do I exit the Help menu in Linux?

1 Answer. Show activity on this post. The help menu opens up in your default pager (usually less ). Press q to quit it.

How do you exit help in terminal?

To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics".


1 Answers

You are probably in less (this is configurable through the PAGER environment variable, but you probably haven't changed that). Press h for help and q to quit.

like image 103
Greg Hewgill Avatar answered Oct 05 '22 12:10

Greg Hewgill