• 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

hcitool: command not found

by Deepika

hcitool is a command-line tool for interacting with Bluetooth devices on Linux systems. It can be used to monitor, configure connections, and send special commands to Bluetooth devices.

hcitool can be used to perform a variety of tasks, such as:

  • Scanning for nearby Bluetooth devices: hcitool scan will scan for nearby Bluetooth devices and display their MAC addresses and device names.
  • Connecting and disconnecting from devices: hcitool cc [MAC address] can be used to connect to a device, and hcitool dc can be used to disconnect from a device.
  • Configuring connections: hcitool lq [MAC address] can be used to view the link quality of a connected device, and hcitool auth can be used to authenticate a device.
  • Sending special commands: hcitool cmd [command] can be used to send special commands to a Bluetooth device. Some examples of special commands include “inquiry” to discover nearby devices, and “reset” to reset the device.

hcitool can also be used in conjunction with other command-line tools, such as sdptool and l2ping to perform more advanced tasks such as querying SDP services or checking the responsiveness of a device. In order to use hcitool, the system must have a Bluetooth adapter and the bluez package installed. It’s important to note that hcitool is a command-line tool and it is recommended to use it with some knowledge of command line and Bluetooth protocol

If you encounter the below error while running the command hcitool:

hcitool: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install bluez
Ubuntu apt-get install bluez
Alpine apk add bluez
Arch Linux pacman -S bluez
Kali Linux apt-get install bluez
CentOS yum install bluez
Fedora dnf install bluez
Raspbian apt-get install bluez

hcitool Command Examples

1. Scan for Bluetooth devices:

# hcitool scan

2. Output the name of a device, returning its MAC address:

# hcitool name bdaddr

3. Fetch information about a remote Bluetooth device:

# hcitool info bdaddr

4. Check the link quality to a Bluetooth device:

# hcitool lq bdaddr

5. Modify the transmit power level:

# hcitool tpl bdaddr 0|1

6. Display the link policy:

# hcitool lp

7. Request authentication with a specific device:

# hcitool auth bdaddr

8. Display local devices:

# hcitool dev

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to use wget to download file via proxy
  2. How to uninstall rhythmbox-plugins from Ubuntu
  3. CentOS / RHEL : How to remove unused Physical Volume(PV) from Volume Group (VG) in LVM
  4. locale: command not found
  5. CentOS / RHEL 7 : Unable To Start The Samba Service
  6. sm Command Examples in Linux
  7. aws history: Print the command-line history for AWS CLI commands (Command Examples)
  8. dar: command not found
  9. getenforce: command not found
  10. rpc.statd[PID]: Failed to create listener xprt (statd, 1, udp6) – CentOS/RHEL 6, 7

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright