Why am I Unable to type into the terminal?

I am unable to type into the terminal to enter anything. I checked the preferences to make sure I wasn't just tyhping black letters an a black background. That wasn't the problem. There is a blinking cursor. Is this a permissions issue? Is there a setting somewhere to enable the terminal? Usining a 2018 Mac Mini running Mac OS 10.14.6


I want to use the terminla to create a bootable system (Sequoia) on an external drive.

Posted on Nov 21, 2024 10:40 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 22, 2024 07:47 AM

When you see Process Completed in the Terminal, that Shell session has exited, you cannot type anything further, and you would need to quit and relaunch the Terminal. If you did not enter the word exit, or type a control+d, either of which would end the current Terminal session, then you have an entry in one or more of your Shell dot files that is exit and killing your Shell. You would need to fix that.


If you do not have a programmer's editor installed already, then Install the free BBEdit text editor if you haven't already. It is a trial that when expired, becomes a free tool.


Quit the Terminal app. Launch a Finder Window and select your home directory on the Favorites listing. Type Shift+cmd+N to create a new folder and name it DOTFILES. Now, press shift+cmd+. to reveal the dimmed hidden files in your home directory. Your Shell's dotfiles will be there.


Bash


.profile

.bashrc

.bash_login

.bash_profile

.bash_logout


Zsh


.zlogin

.zprofile

.zshrc

.zshenv


For the respective Shell that you are running, locate and move (drag) the respective dotfile into the DOTFILES folder. Once in the DOTFILES folder, right-click on each dotfile and choose Open With BBEdit. Search in the newly opened file for the word exit. If you find one, place a comment character (#) before it. Then save the .dotfile, exit BBEdit, and then move that dotfile back into your home directory. Note, that any application run in a .dotfile that sends an exit command to the Shell will also kill the Shell to watch for those too.


When done, in the Finder window, click shift+cmd+. to undo the previous show hidden files command. Quit the Finder Window.


Now launch the Terminal application. It should not produce the Process Completed message.


7 replies
Question marked as Top-ranking reply

Nov 22, 2024 07:47 AM in response to Morgan Britt

When you see Process Completed in the Terminal, that Shell session has exited, you cannot type anything further, and you would need to quit and relaunch the Terminal. If you did not enter the word exit, or type a control+d, either of which would end the current Terminal session, then you have an entry in one or more of your Shell dot files that is exit and killing your Shell. You would need to fix that.


If you do not have a programmer's editor installed already, then Install the free BBEdit text editor if you haven't already. It is a trial that when expired, becomes a free tool.


Quit the Terminal app. Launch a Finder Window and select your home directory on the Favorites listing. Type Shift+cmd+N to create a new folder and name it DOTFILES. Now, press shift+cmd+. to reveal the dimmed hidden files in your home directory. Your Shell's dotfiles will be there.


Bash


.profile

.bashrc

.bash_login

.bash_profile

.bash_logout


Zsh


.zlogin

.zprofile

.zshrc

.zshenv


For the respective Shell that you are running, locate and move (drag) the respective dotfile into the DOTFILES folder. Once in the DOTFILES folder, right-click on each dotfile and choose Open With BBEdit. Search in the newly opened file for the word exit. If you find one, place a comment character (#) before it. Then save the .dotfile, exit BBEdit, and then move that dotfile back into your home directory. Note, that any application run in a .dotfile that sends an exit command to the Shell will also kill the Shell to watch for those too.


When done, in the Finder window, click shift+cmd+. to undo the previous show hidden files command. Quit the Finder Window.


Now launch the Terminal application. It should not produce the Process Completed message.


Nov 21, 2024 10:58 AM in response to Morgan Britt

How did you open the terminal exactly?

Did you enter a previous command?


Normally the terminal should show a gray box, not a blinking cursor when you open it, and you can type something.


Blinking cursor usually indicates it's doing something.

If you entered a command previously, then it may be working on that.


If it's asking you for your password, then it won't show anything but the blinking cursor. You type the password blind and hit enter to confirm.

Nov 21, 2024 02:09 PM in response to Morgan Britt

Morgan Britt wrote:

I did not open a previous command.. It is a gray box cursor (my bad). It isn't asking for anything. In fact, I can't type anything into the Terminal.

it says [login: login: Could not determine audit condition]

and on the next line [process completed]

What is that about?


That can be something that was installed, and that is now malfunctioning.


Or more likely, it's an odd issue with a login file that hit some macOS installs back then.


See this reply for a sequence renaming the problematic /usr/bin/login file using Finder, then launching Terminal, reverting the name using Finder, and then fixing the permissions with a sudo chmod and sudo chown command.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why am I Unable to type into the terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.