What does `sudo -i` do?

The command sudo -i opens a new shell with root privileges. It simulates a full login as the root user, which means it loads the root user's environment variables and configuration files, such as .bashrc or .profile. This is useful for performing administrative tasks in a root environment without needing to switch users explicitly.

0 Comments

no data
Be the first to share your comment!