Terminal Window Opening Randomly

I am using a MacBook Pro, late 2013, 2.3GHz Intel i7, currently running OS X 10.10.5.


For the last couple of days, Terminal has been opening randomly on its own. I will be working on something, and with no predictable pattern, whatever program I am working on will deselect itself. The menu bar will still show the program name in the upper left, but the window I was working in will have been deselected. And, a Terminal window will be open, with the title "myname - bash - 80x24" and the text Last login: *date/time of login* on ttys000, myname-MacBook-Pro:~ myname$.


The terminal window does not appear to be executing any commands of any kind, it just randomly opens, regardless of what program I am using. I have seen it open using Office for Mac, two different web browsers, Adobe products, Pro Tools, and an online game. There does not appear to be any predictable time interval between the openings. When the terminal window is closed, it will inevitably reopen. It is not open at startup (unless I forget to close it when I shut down), and not listed in my login programs.


Any suggestions as to what might be causing this would be appreciated. Thank you.

MacBook Pro, OS X Yosemite (10.10.5)

Posted on Jul 26, 2016 6:54 AM

Reply
7 replies

Jul 26, 2016 11:12 AM in response to BruceTheOriginal

Please read this whole message before doing anything.

This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.

Step 1

The purpose of this step is to determine whether the problem is localized to your user account.

Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”

While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.

Test while logged in as Guest. Same problem?

After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.

*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

Step 2

The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

Please take this step regardless of the results of Step 1.

Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem.

Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.

The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?

After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

Nov 21, 2016 12:38 PM in response to Linc Davis

Hello – apologies for thread-jumping, but I'm not sure what happened to BruceTheOriginal and I've had exactly this problem for about the last 48 hrs. I ran the tests you suggested: the problem appears as usual when logged in a guest but not in Safe Mode.

As suggested in a couple other threads, I've also deleted com.apple.Terminal.plist (twice) and checked whether Terminal is set to start at login; it's not. Would be very grateful for any further help you could offer.


I'm on a mid-2009 MBP, 2.53 GHz Intel Core 2 Duo, running OSX 10.11.6

Nov 21, 2016 2:00 PM in response to P. Yaeger

Sorry I don't know what is causing it. There are other similar posts on here but I can't recall any other solutions so I'd suggest either you search & read or make a new topic as this one has gone nowhere.


You could run the app at malwarebytes.com and or etrecheck http://etresoft.com/etrecheck. They may show processes that may be causing it.


You can also disable automatic login items by logging out & holding shift after entering your password & clicking the login button. Hold it until the Desktop is active. See if that alters the behaviour.


Have you modified any command line files recently or tried other alterations via Terminal or 'Utility' apps?

Nov 21, 2016 2:14 PM in response to Drew Reece

Hi again . . . I think I've got it: after some digging around, the problem appears to have been the Avid App Manager, which (annoyingly) is always set to open on login – with no option not to. I always shut it down immediately but it looks like the latest update must have been buggy; I've uninstalled the App Manager & associated files and haven't seen the Terminal in about 15 minutes, so am fairly optimistic that I've solved it. 🙂 Thanks for your suggestions!

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.

Terminal Window Opening Randomly

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