I am really new to scripting, and i was thinking if i can make a script for computer name, Localhostname, and hostname.
i used to just open terminal then
type
sudo scutil --set Computer Name XXX
sudo scutil --set LocalHostName
sudo scutil --set HostName
pleae help me if below script is okay!
thank you
!/bin/sh
!/bin/bash
Enter the Computer name using scutil
setName=scutil --set ComputerName
scutil --set LocalHostName ${setName}
scutil --set HostName ${setName}
echo HostName and LocalHostName set to ${setName}
exit 0
