Setting the hostname on your Mac

Setting the hostname on your Mac using scuttle

  1. Open a terminal.
  2. Type the following command to change the primary hostname of your Mac:
    sudo scutil –set HostName <new host name>
  3. Type the following command to change the Bonjour hostname of your Mac:
    sudo scutil –set LocalHostName <new host name>
  4. Optional: If you also want to change the computer name, type the following command:
    sudo scutil –set ComputerName <new name>
Like this:
 sudo scutil --get HostName
 sudo scutil --get LocalHostName
 sudo scutil --get ComputerName

Turn Color off in VI

  1. Browse to your user directory with the following command:
    cd ~
  2. Create a .vimrc file with the following command:
    vi .vimrc
  3. Click i for insert mode.
  4. Type the following command below to disable syntax:
    syntax off
    
  5. Hold Shift and hit : then type wq to save and quit the file.