How to avoide repetation of sudo command in linux.
Just follow bellow steps to avoide repation.
sudo command without password
Create file or edit if exist
sudo visudo -f /etc/sudoers.d/90-cloudimg-ubuntu
Change username as per your suite
# ubuntu user is default user in cloud-images. # It needs passwordless sudo functionality. ubuntu ALL=(ALL) NOPASSWD:ALL
Now you can try