terminal command locked out

Do not know how to use or understand terminal. A command change was made and I cannot open my download files. Can anyone help me resolve this issue?

iMac 21.5″, macOS 10.13

Posted on Jul 30, 2020 11:49 AM

Reply
10 replies

Jul 31, 2020 5:42 PM in response to SueLittle

Run the following command to show to see if it will show you the commands which have previously been used in the Terminal:

history


This version of the command will saved a copy to a text file named "Terminal_History_2020-08-01.txt" on the Desktop which you can then use to post here:

history  |  tee  ~/Desktop/Terminal_History_2020-08-01.txt


This may allow us to see the exact command you used to make it easier to advise you on how to resolve the issue.

Aug 5, 2020 1:12 PM in response to SueLittle

The "arp -a" command is Ok and wouldn't have done anything. The other commands are highly unusual, but doubtful they would cause any harm except for possibly #12 depending on what "smith.wps" is.


I think you may need to boot into Recovery Mode to try reinstalling macOS over top of itself.


Normally we would suggest you to download & run EtreCheck to look for other software issues. Maybe try booting into Safe Mode to see if you can run EtreCheck. If not, then you should boot into Recovery Mode and try reinstalling macOS over top of itself. Otherwise you will need to perform a clean install of macOS by first erasing the drive or by restoring from a backup made before the problem started after first erasing the drive.

https://support.apple.com/en-us/HT208496


Edit: I posted this before the second post of extra Terminal history was shown. Will need to review the new list.

Aug 6, 2020 7:24 PM in response to SueLittle

Sorry for the delay as I got really busy. The history you show is unusual since it almost looks like we are seeing items from a script being run. Were you running any scripts? The only thing actually shown that may be concerning though is the running of "MyProg.app" whatever that may be. The history is also missing the first five items as well.


You may want to run MalwareBytes to see if you have some sort of malware on your system. Maybe post the EtreCheck report as well.


I think erasing the drive and reinstalling macOS or restoring from a backup would be best, but you can always try just reinstalling macOS over top of itself first in case it could be that simple unless another contributor has a better idea. See my previous post for more specifics. Personally a clean install/restore from backup is the best option without knowing what actually happened here.

Aug 5, 2020 12:43 PM in response to HWTech

6 /Volumes/HP\ Software/HP\ Installer.app/Contents/Plugins/DeviceSetupDMF.devicePlugin/Contents/Resources/hpppd ; exit;

7 /Volumes/HP\ Software/HP\ Installer.app/Contents/Plugins/DeviceSetupDMF.devicePlugin/Contents/Resources/printerutility ; exit;

8 /Volumes/HP\ Software/HP\ Installer.app/Contents/Frameworks/HPInstallerPlugin.framework/Versions/A/HPInstallerPlugin ; exit;

9 /Applications/Google\ Chrome.app/Contents/Versions/25.0.1364.172/libplugin_carbon_interpose.dylib ; exit;

10 /Applications/Microsoft\ Office\ 2011/Office/Microsoft\ Office\ Setup\ Assistant.app/Contents/MacOS/Microsoft\ Office\ Setup\ Assistant ; exit;

11 /Applications/Microsoft\ Office\ 2011/Office/Microsoft\ Office\ Setup\ Assistant.app/Contents/MacOS/Microsoft\ Office\ Setup\ Assistant ; exit;

12 /Volumes/TRAVELDRIVE/bessie\ smith.wps ; exit;

13 /Volumes/TRAVELDRIVE/bessie\ smith.wps ; exit;

14 /Incompatible\ Software/Applications/Microsoft\ Office\ 2011/Office/My\ Day.app/Contents/MacOS/My\ Day ; exit;

15 arp -a

16 arp -a

17 arp -a

18 arp -a

Aug 5, 2020 1:05 PM in response to SueLittle

19 sudo kextunload /System/Library/Extensions/LogMeInSoundDriver.kext

20 sudo kextunload /System/Library/Extensions/LogMeInSoundDriver.kext

21 /Incompatible\ Software/Applications/4\ Elements\ II.app/Contents/MacOS/4\ Elements\ II ; exit;

22 /System/Library/Extensions/LogMeInSoundDriver.kext/Contents/MacOS/LogMeInSoundDriver ; exit;

23 sudo kextunload /System/Library/Extensions/LogMeInSoundDriver.kext

24 sudo kextunload /System/Library/Extensions/LogMeInSoundDriver.kext

25 /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/Adobe\ Crash\ Reporter.app/Contents/MacOS/Adobe\ Crash\ Reporter ; exit;

26 /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Frameworks/RdrCEF\ helper.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/Adobe\ Crash\ Reporter.app/Contents/MacOS/Adobe\ Crash\ Reporter ; exit;

27 /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Helpers/AcroCEF/RdrCEF.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/Adobe\ Crash\ Reporter.app/Contents/MacOS/Adobe\ Crash\ Reporter ; exit;

28 /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Helpers/AdobeResourceSynchronizer.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/Adobe\ Crash\ Reporter.app/Contents/MacOS/Adobe\ Crash\ Reporter ; exit;

29 /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/AdobeCRDaemon.app/Contents/MacOS/AdobeCRDaemon ; exit;

30 arp -a

31 arp -a

32 arp -a

33 arp -a

34 arp a-arp -a

35 arp -a

36 arp- a

37 arp -a

38 arp -a

39 /Library/Application\ Support/Seagate/TBLoopDriveParams ; exit;

40 /Users/suelittle/Downloads/Support-LogMeInRescue.app/Contents/MacOS/Support-LogMeInRescue ; exit;

41 /Users/suelittle/Downloads/Support-LogMeInRescue.app/Contents/MacOS/Support-LogMeInRescue ; exit;

42 /Users/suelittle/Downloads/Support-LogMeInRescue\ 8.app/Contents/MacOS/Support-LogMeInRescue ; exit;

43 arp -a

44 /Applications/Utilities/Migration\ Assistant.app/Contents/MacOS/Migration\ Assistant ; exit;

45 /System/Library/Frameworks/Automator.framework/Versions/A/Automator ; exit;

46 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos ; exit;

47 Process name

48 $ open -a MyProg.app ; exit;

49 $ open - downloads ; exit;

50 Is

51 ls

52 ls/Applications/Utilities

53 ls /Applications/

54 man ls

55 ls

56 ls downloads

57 /Downloads

58 /Users?suelittle

59 /Users/suelittle

60 cd /users/suelittle

61 ls

62 ls /downloads

63 ls downloads

64 cwd

65 pwd

66 man ls

67 /Applications/EtreCheck.app/Contents/MacOS/EtreCheck ; exit;

68 /Applications/EtreCheck.app/Contents/MacOS/EtreCheck ; exit;

69 /Applications/EtreCheck.app/Contents/MacOS/EtreCheck ; exit;

70 ls

71 cd

72 ls

73 Last login: Fri May 22 19:57:41 on ttys000

74 Susans-iMac:Downloads suelittle$

75 -pfi

76 pfi

77 file://Susans-iMac.local/Users/suelittle

78 cd

79 ls

80 pf suelittle

81 login -pf suelittle

82 history

Susans-iMac:~ suelittle$


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 command locked out

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