how to turn off bluetooth in ubuntu 18.04 terminal

Shell
sudo rfkill block bluetooth : To stop bluetooh

sudo rfkill unblock bluetooth : To start bluetooh
Source

Also in Shell: