Open links in new tab
  1. What are the differences between "su", "sudo -s", "sudo -i", "sudo su"?

    Oct 22, 2011 · 81 sudo lets you run commands in your own user account with root privileges. su lets you switch user so that you're actually logged in as root. sudo -s runs a shell with root privileges. sudo -i …

  2. history of ubuntu - Why is it called sudo? - Ask Ubuntu

    May 26, 2014 · Why do we use sudo to perform a terminal command as an administrative? Why isn't it admin or something else? Is there a reason for sudo?

  3. What does sudo mean and do? - Unix & Linux Stack Exchange

    Oct 2, 2017 · $ sudo apt-get install vim or $ sudo shutdown -ph now Using sudo in this way is prefered to using sudo -s and work with an interactive root shell, because the commands that you execute are …

  4. su vs sudo -s vs sudo -i vs sudo bash - Unix & Linux Stack Exchange

    What is the difference between the following commands: su sudo -s sudo -i sudo bash I know for su I need to know the root password, and for sudo I have to be in the sudoers file, but once executed...

  5. bash - How to sudo + exec? - Unix & Linux Stack Exchange

    Jul 10, 2019 · I need to use sudo to run process as a different user. But how to use sudo with exec like: sudo -u www-data exec php -r 'sleep(2); echo 5;' to replace the sudo process? Why and …

  6. sudo - I want to copy a directory from one place to another via the ...

    Nov 17, 2011 · I want to copy a directory from one place to another folder. sudo cp is the command, but after that what should I type? The destination or source first?

  7. What is the correct way to completely remove an application?

    Sep 15, 2012 · sudo apt-get remove gedit* would remove gedit, gedit-plugins and gedit-common. Typically it is not necessary to do this, because most plugins/associated programs are dependent on …

  8. 'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter ...

    Nov 13, 2013 · sudo su - This time it is a login shell, so /etc/profile, .profile and .bashrc are executed and you will find yourself in root's home directory with root's environment. sudo -i It is nearly the same as …

  9. sudo - How do I login as root? - Ask Ubuntu

    In that case, use: sudo su - to execute a login shell as root after auhenticating sudo, and that shell will not need sudo to run admin commands. To return to the normal user shell, insert the command exit.

  10. sudo - How to add user to sudoers really? - Ask Ubuntu

    Jun 21, 2023 · To get sudo access, switch to root first using: su root Enter your password when prompted, and then add user to sudo: adduser username sudo Enter your user name in place of …