I have been doing this for a while:
sudo su -
but it uses 'sh' rather than 'bash', which is what I'd like to do.
Which command will log me in as root and get me a bash shell even if that's not the default the system gives me?
Try this command:
sudo -i bash
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
10 months ago