How To Change The SUDO Password Time-out In Ubuntu [Quick Tip]

The first time you run a command with "sudo" in Ubuntu, you are asked for a password but after running one more command with "sudo" (after a short while), you are not prompted for a password again. That's because "sudo" has a default password time-out (I'm not sure how long it takes to expire though).

Here is a quick tip to set the exact time-out for "sudo" password remembering in Ubuntu. Open a terminal and type: