how to stop ubuntu from going to sleep code example
Example: ubuntu turn of sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target