sudo -i sum sudo -s

sudo -i, load the user variables, and jump to the target user's home directory;
sudo -s, do not load user variables, not jump catalog;

sudo -i -i added directly run sudo command parameters required to perform the user command can be in the sudoers

Published 482 original articles · won praise 19 · views 20000 +

Guess you like

Origin blog.csdn.net/enthan809882/article/details/104486523