How to run two commands with sudo?

For your command you also could refer to the following example:

sudo sh -c 'whoami; whoami'

Leave a Comment