Skip to main content
2 of 6
spelling
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

As I see. It is just checking if sudo is enabled, that is it..

true just returns true.

So in this case they needed to run any command with sudo, if true inside sudo are returning true, then sudo is enabled.

The other commands does not need to ask sudo password, because your authentication sucessfully in first time.