sudo is quite a good tool in Linux world in which you can specify commands with full access without giving root permissions to everything on the system. However, sudo can also be used to have access or root permissions to everything on the system. Why use sudo, when it can access everything? Why not just use or switch to root? When entering or executing a command, sudo is a safe haven to make sure you know exactly what you are doing or it can provide you a second chance to abort the command. If the command being entered isn't the right one, before entering the password or pressing enter "Ctrl + C" can be used to abort the command and stop the execution. When running on a root session, any commands executer after pressing enter. There's no way to cancel or abort the command. That's why sudo is a good practice to use, so any of change of mind before pressing enter can is still possible to cancel. And running in a non-root session, if the command is...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.