Sample Header Ad - 728x90

`sudo` and other commands not found in terminal in startup options mode

0 votes
1 answer
2304 views
(EDITED for specificity) When I use terminal in recovery mode (on a MacBook Pro with Apple silicon) a lot of bash commands seem to be missing and give me "command not found" errors when I try to run them. This goes for less basic commands like systemsetup that problem aren't standard bash, but also some really core ones like sudo and man and du (but not df). What causes this? I looked up another question (https://apple.stackexchange.com/questions/282299/sudo-command-not-found) that suggested maybe there was an issue with my PATH, but the steps that were suggested to fix it didn't change anything:
-bash-3.2# /usr/bin/nano ~/.bash_profile
-bash: /usr/bin/nano: No such file or directory
-bash-3.2# /bin/cat /etc/paths
cat: /etc/paths: No such file or directory
-bash-3.2# export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
-bash-3.2# sudo echo test
-bash: sudo: command not found
Is recovery mode running a *super* stripped down bash that doesn't recognize these commands? Or does this have to do with the way my system was damaged somehow? Or something else?
Asked by Empiromancer (130 rep)
May 15, 2023, 05:18 PM
Last activity: May 17, 2023, 11:29 PM