Ubuntu / Linux news and application reviews.

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:

How To Autocomplete Commands Preceded By 'sudo' [Quick Ubuntu Tip]

When writing a command in the terminal, you can autocomplete it by pressing the TAB key. Example: type "nau" in the terminal and press TAB -> "nautilus" should show up (if you have Nautilus installed, obviously).

However, the autocomplete doesn't work in Ubuntu if you are trying to run a command with "sudo". For example, typing "sudo nau" and then pressing the TAB key will not autocomplete the command to "sudo nautilus".


Here is how to get autocomplete to work in the Terminal while using "sudo". Simply open the ".bashrc" hidden file from your home folder. If you use GNOME, paste this in a terminal to open it: