- list the status of all supported usb hub
$ uhubctl
- cut the power of port2 of the usb hub 2
$ uhubctl -l 2 -a off -p 2
- using the
nohup
command to start
(venv)$ nohup python -u main.py &
- find the process id
(venv)$ ps ax | grep main.py
- terminate the background process
(venv)$ kill $PID