how to configure bluetooth on ubuntu command line

C++
'If you are on Ubuntu or an Ubuntu-based distro, run the following: command:
'
    sudo apt-get install bluetooth bluez bluez-tools rfkill.
    sudo rfkill list.
    sudo rfkill unblock bluetooth.
    sudo service bluetooth start.
    sudo apt-get install blueman.#If you are on Ubuntu or an Ubuntu-based distro, run the following: command:

    sudo apt-get install bluetooth bluez bluez-tools rfkill.
    sudo rfkill list.
    sudo rfkill unblock bluetooth.
    sudo service bluetooth start.
    sudo apt-get install blueman.
Source

Also in C++: