When you do experiments in your own computer or lab, security is not a big issue, but every time you use sudo commmand, the password is needed; or if you want to run a script which would run remote sudo command in remote computer, under that circumstance, the script cannot be runned automatically since user would be promoted to input the password, which is quite inconvenient. So let’s make your life easier.
Do following things then you can run sudo command without password:
insert this line to the file
ALL ALL = (ALL) NOPASSWD: ALL