You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sudo command in recovery mode terminal

I m in recovery mode and launch terminal . I see in screen : bash -3.2#

it don’t accept sudo command


i ve to use sudo command to change default language in recovery mode


is it a way to use the sudo command in terminal when in recovery mode ?


thanks

MacBook Pro with Touch Bar

Posted on Mar 12, 2021 12:01 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 12, 2021 4:04 PM

The modern mac os recovery environment automatically logs in as root. So the su or sudo command is not necessary since you are already using superuser privilages. Try the command ls -lah to see your permessions of the current directory. Or ls -lah whoami to see your user permissions.


https://apple.stackexchange.com/questions/406345/sudo-is-missing-on-recovery-terminal



3 replies
Question marked as Top-ranking reply

Mar 12, 2021 4:04 PM in response to Gianrico

The modern mac os recovery environment automatically logs in as root. So the su or sudo command is not necessary since you are already using superuser privilages. Try the command ls -lah to see your permessions of the current directory. Or ls -lah whoami to see your user permissions.


https://apple.stackexchange.com/questions/406345/sudo-is-missing-on-recovery-terminal



Mar 12, 2021 8:51 PM in response to Gianrico

As @BDAqua mentions you are already at a root (aka admin) prompt in Recovery Mode so the actual "sudo" command won't work as it is completely unnecessary. Just run the commands without adding "sudo" and those commands will just work with root/admin privileges. Just be careful since every command you are running while at the "#" prompt is running with full admin privileges so if you mistype something or make any mistakes it could be catastrophic to macOS and your data.


Make sure to have a good backup.

Sudo command in recovery mode terminal

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