How to Keep “sudo” Password Timeout Session Longer in Linux

In Ubuntu and its derivatives such as Linux Mint or any other Ubuntu-based distro, when you execute a sudo command, it will prompt you to enter administrative password. After you execute sudo command first time, the password will last for 15 minutes by default, so you don’t need to type password for every sudo command. If, somehow you feel that the 15 minutes too long or short for some reason, you can change it with a easy tweak in sudoers file.