How To Change A Mac’s Computer Name With Terminal

If you're a Mac user, you probably know that you can go to System Preferences from the Apple menu in OS X, then go to Sharing and change your computer name from there. What happens when that option is greyed out and you can't change it? In my case, I could click on Edit and [...]