Enable USB debugging mode from terminal code example
Example: how to enable usb debugging
Open the Settings app.
Select System.
Than click About phone.
click Build number 7 times.
Return to the previous screen to find Developer options near the bottom.
Scroll down and enable USB debugging.