This is helpful if you don’t want to be typing the sudo password everytime you need to update, install or do anything in the terminal that needs root access.

The right way to do it is using sudo visudo

hostname@user:~$ visudo

If you receive an error trying to use visudo:

visudo: no editor found (editor path = /usr/bin/vi)

Install vi:

hostname@user:~$ sudo pacman -S vi

Run sudo visudo again and then append at the end, replace the $USER with your username

$USER ALL=(ALL) NOPASSWD: ALL

Save the file and logout or reboot the computer, the next time you use sudo on any command will not ask for password.

If you like the content please support it.

Cheers.