Wake a computer over the network (Wake-on-LAN)
Send a magic packet to a sleeping machine's MAC address to power it on remotely.
01Command
$ wakeonlan AA:BB:CC:DD:EE:FF02What it does
Wake-on-LAN works by broadcasting a 'magic packet' containing the sleeping computer's MAC address; its network card stays half-awake and triggers power-on. On the target machine WOL must be enabled in BIOS/UEFI, and NetworkManager users can persist it with nmcli con mod 'wired' 802-3-ethernet.wake-on-lan magic. This is ideal for starting a home server or desktop before you arrive.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Wake-on-LAN — Arch WikiEvidence: Sending a magic packet to the target's MAC address (with wakeonlan or etherwake) powers the machine on, provided WOL is enabled in BIOS and NIC.
- nmcli(1) — Ubuntu manual pageEvidence: The 802-3-ethernet.wake-on-lan property controls whether NetworkManager enables Wake-on-LAN on a wired connection.
Last verified: 2026-09-18 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.