macos关闭ipv6命令
Bluetooth has been a revelation in wireless technology: wireless mice, headphones, streaming devices, and a variety of home and office environments. It goes without saying that wireless peripherals are so much easier to manage than wired counterparts, especially mice, that I usually have my MacBook's bluetooth turned on.
蓝牙一直是无线技术的亮点:无线鼠标,耳机,流媒体设备以及各种家庭和办公室环境。 不用说,无线外围设备比有线设备(尤其是鼠标)更易于管理,以至于我通常会打开MacBook的蓝牙。
There are times, however, that I move my laptop away from the mouse (OK, I admit: the kitchen) where the bluetooth connection is still in range but with the mouse still connected, I can't use my laptop's touchpad, leaving me to only use my keyboard which is an annoyance. That led me to finding blueutil, a command line utility for macOS that lets me turn Bluetooth on and off with one command!
但是,有时我会将笔记本电脑从鼠标移开(好的,我承认:厨房),那里的蓝牙连接仍在范围内,但是鼠标仍然连接,我无法使用笔记本电脑的触摸板,让我离开只使用我的键盘很烦。 这使我找到了blueutil ,这是一个用于macOS的命令行实用程序,可让我使用一个命令打开和关闭蓝牙!
Start by installing blueutil with HomeBrew:
首先通过HomeBrew安装blueutil:
brew install blueutil
The -p
flag is a switch for turning bluetooth on and off:
-p
标志是用于打开和关闭蓝牙的开关:
# Turn bluetooth off
blueutil -p 0
# Turn bluetooth on
blueutil -p 1
This utility will be so helpful as I move around my house. Since I can't use my touchpad during these situations, I can't turn Bluetooth off from the command bar, so a simple command like this is exactly what I need!
当我四处走动时,此实用程序将非常有用。 由于在这种情况下无法使用触摸板,因此无法从命令栏关闭蓝牙,因此正是我所需要的简单命令!
macos关闭ipv6命令