> For the complete documentation index, see [llms.txt](https://strangebutohwell.gitbook.io/knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strangebutohwell.gitbook.io/knowledge/macos/hostname-macos.md).

# Hostname - macOS

Set HostName, LocalHostName, and Computer Name on macOS via Terminal

{% hint style="info" %}
Replace **--set** with **--get** in any command to show current system setting.
{% endhint %}

## Set HostName&#x20;

Fully Qualified HostName

```
sudo scutil --set HostName <new host name>
```

## Set LocalHostName&#x20;

Bonjour HostName, usable on Local Network

```
sudo scutil --set LocalHostName <new host name>
```

## Change Computer Name

This is the user-friendly computer name you see in Finder.

```
sudo scutil --set ComputerName <new name>
```
