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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. file: command not found
  2. adig: command not found
  3. chattr: command not found
  4. Permissions 0644 for ‘/home/username/.ssh/your_pem_file.pem:’ are too open
  5. Understanding the job control commands in Linux – bg, fg and CTRL+Z
  6. How to restrict ssh logins by user and client address on CentOS/RHEL
  7. createrepo: command not found
  8. localectl Command Examples in Linux
  9. cuyo: command not found
  10. e2image: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright