Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

asb1

macrumors newbie
Original poster
Jun 8, 2020
20
5
Hello!

I've just migrated from one Mac to a new Mac, upgrading from Mojave to Catalina in the process.

On the new machine, I noticed a Terminal Document in the Applications folder, titled "APi1". I almost never use Terminal, only very occasionally for very small things. I have never knowingly saved a terminal document.

I did not think this came from the old machine, but when I searched for it there (still have the old Mac) it did show up— it was a hidden file, in my applications folder (revealed with command+shift+period). On my new system it was no longer hidden. Before I opened it, the file type was listed as "Unix Executable", now the Kind is "Terminal Document". It was created two years before the migration.

Here is the contents of the file.

Last login: Sun Aug 30 23:30:24 on ttys000 [my name]-MacBook-Pro-2:~ [myusername]$ /Applications/APi1 ; exit; /Applications/APi1: line 1: syntax error near unexpected token `)' /Applications/APi1: line 1: `-5??ѿi}????=?c?g?i??l?o?|?????_'԰?????s?l?=9w?E?&S???T??wkZZeվ?1?XvL淖q)M+??*???9lP?8????R?7?????'*8n??n?3 ?Iwx???Y??n??M??S(?e??-4 М?,?1)J=t?j?M???dP?0?L㤀????;?6jL!??:.W? ??ѪL?㱉? ??$u?E?V$???͇*??E??S?Fz ?}?[???A?C???6Ƕ4I??I?????,?????r?]??x:?*?Z?M??ݐcV??"H?~u <X~O???[ӑW????B?u???{?I([?Jp??7XG??bd]&??T?6?Ǽ??W?X?2Ko(AjdGO[?????5??ƒ??n?O?? ??۷?2?;+?u{w???߾{h??? ??T??o???^iYD?7v?߉?hS???Lʴ????w36z??fx?Ε??(#]#?????ſ???ת;?' logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed]

My only guesses:

  • one time when I used Terminal in the past, I accidentally saved a file with nonsense in it.
  • Could I have accidentally changed the extension of another file and turned it into a Terminal file?
  • Or is this just some junk from another application?
Any idea what this is?

Thank you!
 
It kind of looks like someone tried to execute a binary file as a shell script in Terminal.
 
Is that the actual contents (that is, if you drop the file into TextEdit is that what it displays), or is that what appears when you actually double-click the file?

That's what appears in Terminal when I double click the file.
 
After some more digging through my Applications folder on Time Machine, it seems like it may have been connected to an uninstaller for an app. The "last modified" time on the uninstaller is one minute before the last modified date on the Terminal Document. Could this just be junk created by an uninstaller?

I'm assuming it's safe to delete this, but I am keen on figuring out exactly where it came from and if it has been doing anything—it was "hidden" in my system for two years!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.