Linux command
wol 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
wol [mac_address]
Example
wol -i [ip_address] [mac_address]
Example
wol -h [hostname] [mac_address]
Example
wol -p [port_number] [mac_address]
Example
wol -f [path/to/file]
Verbose
wol -v [mac_address]
说明
wol sends Wake-on-LAN magic packets to wake up computers remotely. The target computer must have WoL enabled in BIOS and network interface configuration. Magic packets are broadcast on the local network by default. For remote networks, specify the target IP or hostname.
参数
- -i, --ipaddr _IP_
- Send to specified IP address
- -h, --host _HOSTNAME_
- Send to specified hostname
- -p, --port _PORT_
- Use specified port
- -f, --file _FILE_
- Read addresses from file
- -v, --verbose
- Verbose output
FAQ
What is the wol command used for?
wol sends Wake-on-LAN magic packets to wake up computers remotely. The target computer must have WoL enabled in BIOS and network interface configuration. Magic packets are broadcast on the local network by default. For remote networks, specify the target IP or hostname.
How do I run a basic wol example?
Run `wol [mac_address]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --ipaddr _IP_ do in wol?
Send to specified IP address