• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

bluetoothctl Command Examples in Linux

by admin

bluetoothctl is a command-line utility in Linux that is used to manage Bluetooth devices and settings. bluetoothctl is a part of the bluez package, which is a suite of tools and libraries for managing Bluetooth devices on Linux systems.

To use bluetoothctl, you will need to have the bluez package installed on your Linux system. You can install bluez using the package manager for your specific distribution of Linux. For example, on an Ubuntu system, you can use the apt command to install bluez:

$ sudo apt install bluez

Once bluez is installed, you can start the bluetoothctl utility by running the bluetoothctl command. bluetoothctl will start in interactive mode, allowing you to enter commands and manage your Bluetooth devices and settings in real-time.

bluetoothctl Command Examples

1. Enter the `bluetoothctl` shell:

# bluetoothctl

2. List all known devices:

# bluetoothctl devices

3. Power the Bluetooth controller on or off:

# bluetoothctl power on|off

4. Pair with a device:

# bluetoothctl pair mac_address

5. Remove a device:

# bluetoothctl remove mac_address

6. Connect to a paired device:

# bluetoothctl connect mac_address

7. Disconnect from a paired device:

# bluetoothctl disconnect mac_address

8. Display help:

# bluetoothctl help

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 7 : GRUB2 configuration file /boot/grub2/grub.cfg explained
  2. dirb Command Examples in Linux
  3. kwrite Command Examples in Linux
  4. “shutdown” Command Examples in Linux
  5. Linux OS Service ‘rusersd’
  6. CentOS / RHE 7 : How to Prevent Users from Using the Last 10 Passwords
  7. gdalbuildvrt: Build Virtual Datasets from a list of existing datasets
  8. umask: command not found
  9. What are Symbolic Links (Soft Links) and how to create them under Linux
  10. nm : Command to list the symbols in object files.

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright