Ubuntu Edit Sudo Password Prompt Duration
If you feel that you are getting prompted for password too often when you are using the sudo command. You can lengthen the timeout duration.
sudo visudo

Add timestamp_timeout=1440 next to env_reset. 1440 is equivalent to 1 day in minutes.
Defaults env_reset, timestamp_timeout=1440
Exit nano by pressing Ctrl+x
then y for yes
then enter