Is a terminal prompt sudo -u username command
same as doing
sudo -i -u username
then command
in the next line?
If no, what is the differences? What are the use cases when doing the first is better or preferable than doing the later and vice versa.
If anyone could explain what the command do step by step or parameter per parameter, that is even better.