Can't use Terminal for some Reason

Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
When I open the terminal it reads "[Process completed]" and nothing more. I cannot input text or clear it. The only "strange" thing I've done recently is install the Trend Micro antivirus software, but even when I shutdown the antivirus the terminal still reads "[Process completed]" and is still useless. I wonder what that process might be.:Not-Amused:
 
Joined
Jan 1, 2009
Messages
15,507
Reaction score
3,867
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 15 Pro, plus ATVs, AWatch, MacMinis (multiple)
Get rid of the antivirus software. There are no viruses for the Mac at this time so the software is doing nothing, and cannot, because the vector of attack of any future virus is not known. Then try Terminal again and see if that fixes the problem. If not, come back and give us more information about what Mac, what version of the OS and all the other third-party "helper" software you may have installed.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,106
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
How are you launching the Terminal? You seem to be starting a script that is ending and not the Terminal.
 
OP
T
Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
How are you launching the Terminal?
By clicking the terminal icon. Screen Shot 2018-10-19 at 5.18.24 PM.png
Get rid of the antivirus software. There are no viruses for the Mac at this time so the software is doing nothing, and cannot, because the vector of attack of any future virus is not known. Then try Terminal again and see if that fixes the problem. If not, come back and give us more information about what Mac, what version of the OS and all the other third-party "helper" software you may have installed.
I installed an antivirus because Chilltab somehow got installed in Firefox and Safari. the version of Trend I've got is 8.0.3082.
 
Last edited:
Joined
Jan 1, 2009
Messages
15,507
Reaction score
3,867
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 15 Pro, plus ATVs, AWatch, MacMinis (multiple)
I installed an antivirus because Chilltab somehow got installed in Firefox and Safari. the version of Trend I've got is 8.0.3082.
Chilltab is a browser hijacker and no antivirus software will prevent it. But it's your machine, so you are free to slow it down with whatever useless software you want to run on it.

For Terminal, try opening Activity Monitor and on the CPU tab, search for Terminal and highlight it. Then click on the "X" button just above the process name column and quit/force quit Terminal. If Quit doesn't work, use Force Quit. You can also get to Force quit by clicking on the  symbol in the upper right corner of the screen, then on Force Quit. All your running apps should appear. Select Terminal and force quit it.
 
Joined
May 21, 2012
Messages
10,739
Reaction score
1,189
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
How are you closing Terminal?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,106
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Launch Terminal and then hit CMD+n to get a new window. Does that drop you to the shell? Typing 'exit' at the shell will kill Bash (the default shell) and leave the window open with the Process Completed message. If you totally quit Terminal with CMD+q and then open it again you should be back in business.
 
OP
T
Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
Chilltab is a browser hijacker and no antivirus software will prevent it. But it's your machine, so you are free to slow it down with whatever useless software you want to run on it.

For Terminal, try opening Activity Monitor and on the CPU tab, search for Terminal and highlight it. Then click on the "X" button just above the process name column and quit/force quit Terminal. If Quit doesn't work, use Force Quit. You can also get to Force quit by clicking on the  symbol in the upper right corner of the screen, then on Force Quit. All your running apps should appear. Select Terminal and force quit it.
I've tried killing it from the Activity Monitor, and I actually even uninstalled the anti-virus now just in case. But the result is still the same..
Launch Terminal and then hit CMD+n to get a new window. Does that drop you to the shell? Typing 'exit' at the shell will kill Bash (the default shell) and leave the window open with the Process Completed message. If you totally quit Terminal with CMD+q and then open it again you should be back in business.
When I hold CMD+n it opens another window like the one in my screenshot and I still can't type anything. Is this supposed to work? Screen Shot 2018-10-19 at 8.36.20 PM.png It doesn't do anything. And holding CMD+q closes the terminal but doesn't change anything.
 
Joined
Oct 16, 2010
Messages
17,540
Reaction score
1,576
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
Chilltab is a browser hijacker and no antivirus software will prevent it. But it's your machine, so you are free to slow it down with whatever useless software you want to run on it.


Gee Jake, are you sure you weren't in the diplomatic service at some point, and do I have your permission to use your rather polite phrase above??? ;D :Smirk:





- Patrick
======
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,106
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
OK, as I suspected, you don't have a default shell defined and such Terminal doesn't know what to do.

In the "New Command" window that you have right now, enter 'chsh -s /bin/bash' and UNCHECK the "Run command inside a shell" option and hit Run. This will run the "[CH]ange [SH]ell" command and ask you for your password. Once you enter that you should have the proper shell and Terminal will have something to run.

You might also want to take a look at iTerm 2 which is a MUCH better terminal than the default Terminal app.
 
Joined
Jan 1, 2009
Messages
15,507
Reaction score
3,867
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 15 Pro, plus ATVs, AWatch, MacMinis (multiple)
Gee Jake, are you sure you weren't in the diplomatic service at some point, and do I have your permission to use your rather polite phrase above??? ;D :Smirk:





- Patrick
======
Patrick, my man, that WAS my diplomatic side showing. Normally, my idea of mercy is a one-shot-kill. And by all means, feel free to recycle just about anything that I post. Most of it is drivel anyway.
 
OP
T
Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
OK, as I suspected, you don't have a default shell defined and such Terminal doesn't know what to do.

In the "New Command" window that you have right now, enter 'chsh -s /bin/bash' and UNCHECK the "Run command inside a shell" option and hit Run. This will run the "[CH]ange [SH]ell" command and ask you for your password. Once you enter that you should have the proper shell and Terminal will have something to run.

You might also want to take a look at iTerm 2 which is a MUCH better terminal than the default Terminal app.
I am not asked for my password. Instead it opens another window like the first that I'm unable to type in, only with some text on the top bar.
Screen Shot 2018-10-21 at 2.29.51 AM.png
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,106
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Can you try checking the "Run inside the shell" option and see if that works better?
 
Joined
May 21, 2012
Messages
10,739
Reaction score
1,189
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
Did you make any changes to the hidden file .bash_profile or allow some app make changes, including adding a .bashrc file (also hidden)?
 
OP
T
Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
Those files are configuration files for the Terminal, hidden in your home folder. They can contain bash scripts. Some applications, most notably from MacBrew and MacPorts, make changes to these files. (the changes are often just "executable PATHs.")
 
OP
T
Joined
Nov 24, 2017
Messages
51
Reaction score
0
Points
6
I don't think I'd have changed anything there knowingly. But perhaps that Anti-Virus I was initially using did something stupid. How do I access those files and what should I look for while I'm there?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top