


3 tips to easily customize your Mac computer name, host name and Bonjour name
Mar 06, 2024 pm 12:20 PMMany Mac users tend to keep the default name of their device and may never consider changing it. Many people choose to stick with the name from the initial setup, such as "Johnny's MacBook Air" or simply "iMac."
Learning how to change the name of a Mac is a very practical skill, especially when you have multiple devices, as it can help you quickly distinguish and manage them.
Next, we will teach you step by step how to change the computer name, host name and Bonjour name (local host name) in macOS system.
Why change the name of your Mac?
Modifying the name of your Mac can not only show your personality, but also help improve your user experience:
- Personalize your Mac: The default name may not be to your taste. Changing it to a name you like can make your Mac more personalized.
- Optimize the AirDrop experience: AirDrop is a convenient file transfer function in macOS, but if the Mac name is not intuitive enough, others may be confused when sending or receiving files. A clear and concise name makes device identification simple.
- Simplify Bluetooth connections: If your Mac name is too complex, it may be difficult to distinguish Bluetooth devices when connected. Simple and clear names facilitate quick pairing.
- Enhanced system interaction experience: In the file system and terminal commands, an easily identifiable name can make your operations more convenient.
- Improve network management efficiency: On a home network, an easily identifiable Mac name helps with device management and troubleshooting.
The difference between computer name, host name and Bonjour name
Before changing the name of your Mac, you need to understand the basic concepts of computer name, host name, and Bonjour name (local host name) in order to manage your device more effectively.
Name type | effect | Typical format |
---|---|---|
Computer name | The user-identifiable name is equivalent to the "identity" of the device, making it easier for you to identify your Mac device. | User-defined, such as "John Doe's MacBook Pro". |
CPU name | The name used to identify the device on the network, used for network communication, such as SSH connections. | Usually corresponds to the computer name, but is limited to letters, numbers, hyphens, and periods, and is not case-sensitive. |
Bonjour name (local host name) | The name used to identify the device on the local network so that other computers can easily find and connect to the Mac. | Computer name .local suffix, not case sensitive. |
For example, if your Mac computer name is Billyfus-MacBook-Pro
, then the local host name (Bonjour name) is Billyfus-MacBook-Pro.local
, which is convenient for local Identify and connect within the network.
Step 1: Change the Mac computer name
Method 1: Through "System Settings"
Applicable to macOS Ventura and above.
1Click the Apple menu ? icon in the upper left corner of the screen and select "System Settings".
2Click "General" > "About This Mac".
3 Click on the current computer name and enter the new name you want.
Change computer name
4 Press Enter or close the window to save changes.
5 Restart your Mac to apply the changes.
Method 2: Through the "Terminal" command line
Applies to all macOS versions.
1 Double-click to open "Terminal" in "Applications" > "Utilities".
2Execute the following command to change the Mac computer name:
## 將 NewComputerName 替換為新的計(jì)算機(jī)名 scutil --set ComputerName "NewComputerName"
3 Verify administrator rights to confirm changes.
4 Restart your Mac for the changes to take effect.
5Execute the following command in "Terminal" to verify whether the change is successful:
scutil --get ComputerName
Use the scutil command to change the computer name
After the name change is completed, it may take some time for other devices in the network to recognize the new name, and the Bonjour name will also be automatically updated.
Step 2: Change the Mac host name
Applies to all macOS versions.
On Mac, you can change the host name through the "Terminal" command. The steps are as follows:
1 Double-click to open "Terminal" in "Applications" > "Utilities".
2Execute the following command to change the Mac host name:
## 將 NewHostName 替換為新的計(jì)算機(jī)名 scutil --set HostName "NewHostname"
3 Verify administrator rights to confirm changes.
4 After restarting your Mac, execute the following command to confirm whether the host name has been changed successfully:
scutil --get HostName
Use the scutil command to change the host name
Host names are not case-sensitive, and changing the host name will not affect the Bonjour name (local host name).
Step 3: Change Bonjour name
You can change the Bonjour name (local host name) of your Mac device through the following two methods:
Method 1: Through "System Settings"
Applicable to macOS Ventura and above.
1Click the Apple menu ? icon in the upper left corner of the screen and select "System Settings".
2Click "General" > "Sharing".
3 Next to "Local Host Name", click "Edit", enter the new name, and click "OK".
Change the local host name through "System Settings"
4 Restart your Mac for the changes to take effect.
Method 2: Through the "Terminal" command line
Applies to all macOS versions.
1 Double-click to open "Terminal" in "Applications" > "Utilities".
2Execute the following command to change the Mac local host name:
## 將 NewLocalHostName 替換為新的 Bonjour 名稱 scutil --set LocalHostName "NewLocalHostName"
3 Restart your Mac to confirm the changes.
4Execute the following command in "Terminal" to check whether the new local host name is set successfully:
scutil --get LocalHostName
通過 scutil 命令更改本地主機(jī)名
本地主機(jī)名不區(qū)分大小寫,更改之后,主機(jī)名將保持不變。
通過閱讀本文,你已經(jīng)學(xué)習(xí)了如何更改 Mac 設(shè)備的計(jì)算機(jī)名稱、主機(jī)名和 Bonjour 名稱。無論是為了個(gè)性化你的設(shè)備,還是為了提升使用體驗(yàn),更改名稱都是一項(xiàng)非常實(shí)用的操作。
希望本文提供的詳細(xì)步驟和注意事項(xiàng)能夠幫助你輕松完成修改,并獲得更加便捷的 Mac 使用體驗(yàn)。
The above is the detailed content of 3 tips to easily customize your Mac computer name, host name and Bonjour name. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Preface: Today, this site will share with you the relevant content about installing pkg files on Mac. If it can solve the problem you are facing now, don’t forget to follow this site and start now! The previous version of macos pkg cannot be installed to upgrade the operating system: If your laptop is using an older operating system version, it is recommended to upgrade to the latest operating system version. Because older versions may not support installation of the latest macOS system. Select "Erase" in Disk Utility, then select the Macos extension in the format, do not check the encryption option, and do not select the apfs format, and finally click the "Erase" button to solve the problem of being unable to complete the macOS installation. Drag the application's icon to the file starting with App

Many Mac users tend to keep the default name of their device and may never consider changing it. Many people choose to stick with the name from the initial setup, such as "Johnny's MacBook Air" or simply "iMac." Learning how to change the name of your Mac is a very useful skill, especially when you have multiple devices, as it can help you quickly distinguish and manage them. Next, we will teach you step by step how to change the computer name, host name and Bonjour name (local host name) in macOS system. Why should you change your Mac name? Changing the name of your Mac can not only show your personality, but also help improve the user experience: Personalize your Mac: The default name may not be to your taste, change it to a name you like.

Recently, some friends have consulted the editor about how to set up WeChat Mac to automatically convert voice messages into text. The following is a method for setting up WeChat Mac to automatically convert voice messages into text. Friends in need can come and learn more. Step 1: First, open the Mac version of WeChat. As shown in the picture: Step 2: Next, click "Settings". As shown in the picture: Step 3: Then, click "General". As shown in the picture: Step 4: Then check the option "Automatically convert voice messages in chat to text". As shown in the picture: Step 5: Finally, close the window. As shown in the picture:

By default, iPhone takes photos from the camera in HEIC format. HEIC stands for High Efficiency Image Container and can hold more pixel data than PNG or JPG files, taking up significantly less space on iPhone storage compared to other formats. These files work best on iPhones but are not widely accepted on the internet because they often result in blurry/grainy pictures when you share them with non-Apple devices. To ensure that HEIC images are compatible on other devices, you may need to convert them to JPG format. This article will introduce how to convert HEIC images to JPG on Mac. How to Convert HEIC Photos to JPG on Mac [3 Methods] Method

Introduction: This article will introduce to you the relevant content about the mac configuration file not taking effect. I hope it will be helpful to you, let's take a look. The solution to the problem that environment variables cannot take effect under Mac. After configuring environment variables in the Mac system, it is found that they are only effective in the current terminal and will become invalid once the terminal is switched. After inquiry, it was found that the Mac system is pre-installed with a tool called ultimate shell-zsh, and the reading of environment variables needs to be set in the .zshrc file. 2. In order for our configuration file to take effect, we can only add the above configuration in .zshrc. If you don’t make the above settings, you will find that it will only take effect every time you source ~/.bash_profile. Re-open z next time.

Ever since the Apple M4-powered OLED iPad Prolineuparrived, Apple Silicon aficionados have been eagerly awaiting the arrival of the M4 SoC on the Mac lineup. The M4 was undeniably a major leap forward in both compute and graphics performance - leapfr

Formatting the drive of your Mac system is crucial for proper functioning. It helps prevent various system problems and makes your Mac more stable overall. While naturally Mac supports various partitioning schemes, GUID offers more modern and versatile features compared to other options. Also essential for newer Macs and supports larger drives, giving you the best compatibility and stability. This guide will take an in-depth look at how to format a drive using a GUID on macOS. That said, let's get started. Why GUID is important for macOS installation A GUID (full form of Globally Unique Identifier) ??is a partitioning scheme that helps install and run the macOS operating system. It is better than traditional MBR (main lead

The role and setting method of the MySQL host name MySQL is a popular open source database management system that is widely used in various websites and applications. In the MySQL database, the hostname plays a very important role. It is used to identify the host or client connecting to the database. Host names have many uses in MySQL, including authorizing access, identifying connection sources, controlling access permissions, etc. This article will introduce the role of the MySQL host name and how to set up the host
