13“ MacBook Air Terminal says ” (base) UNKNOWN
-
01-06-2021 - |
La solution
The UNKNOWN
part is your computer hostname, for some reasons it changed itself.
You can change the hostname from the Terminal using the following commands :
sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
Then flush your DNS cache with dscacheutil -flushcache
and reboot your Mac.
You can also change it without using commands, in System Preferences > Sharing > Computer Name
.
Licencié sous: CC-BY-SA avec attribution
Non affilié à apple.stackexchange