#列出所有可用设备
rfkill list
0: ideapad_wlan: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
5: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
#关闭编号0的设备
rfkill block 0
#打开编号0的设备
rfkill unblock 0
#关闭所有wifi,蓝牙设备
rfkill block all
#开启所有wifi,蓝牙设备
rfkill unblock all
以上就是为各位朋友分享的相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多等着你!