macos关闭ipv6命令_在macOS上从命令行打开和关闭蓝牙

本文介绍了如何在macOS上使用命令行工具blueutil来开启和关闭蓝牙。当蓝牙连接导致无法使用笔记本电脑触摸板时,这个命令行工具提供了一种便捷的解决方案。
摘要由CSDN通过智能技术生成

macos关闭ipv6命令

bluetooth

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!

当我四处走动时,此实用程序将非常有用。 由于在这种情况下无法使用触摸板,因此无法从命令栏关闭蓝牙,因此正是我所需要的简单命令!

翻译自: https://davidwalsh.name/command-line-bluetooth

macos关闭ipv6命令

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值