Forrest logo
back to the airport tool

airport:tldr:68a6a

airport: Disassociate from current airport network.
$ sudo airport --disassociate
try on your machine

The command "sudo airport --disassociate" is used to disassociate from the current Wi-Fi network on a macOS system. Here is an explanation of each part:

  • "sudo" stands for "superuser do" and is used to execute commands with administrative privileges. It allows the user to run commands as the superuser or another user specified by the system administrator.

  • "airport" is a command-line utility available on macOS that allows users to manage Wi-Fi connections and perform various actions related to wireless networks.

  • "--disassociate" is an option or flag that is passed to the "airport" command. In this context, it instructs the "airport" utility to disassociate or disconnect the macOS device from the current Wi-Fi network it is connected to.

By running this command with administrative privileges, macOS will disconnect from the current Wi-Fi network, which can be useful in situations where troubleshooting or reconnecting to a different network is necessary.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the airport tool