turn on bluetooth terminal linux

C++
rfkill unblock bluetooth
rfkill block bluetooth

Source

Also in C++: