How do I eject a stuck Terminal Mac?
Quit a shell session
In the Terminal app on your Mac, in the window running the shell process you want to quit, type exit , then press Return.
What do I do when my Mac says terminal password?
When a password is required in the Terminal window, you see a password prompt and the cursor changes to a key. In the Terminal app on your Mac, type your administrator account password at the prompt, then press Return.