Linked Questions

11 votes
1 answer
58k views

Difference between su and sudo su [duplicate]

Asking because of curiosity. :) When I type sudo su It asks for my user password. And when I type just su It asks for the root user password. But both the commands directs me to the root ...
user avatar
9 votes
2 answers
3k views

What is the difference between sudo -i and sudo -s? [duplicate]

I am a new Ubuntu user and find some people tell me to use sudo -i to get root and others tell me to use sudo -s. What is the difference? Which one do I use and when?
user avatar
4 votes
2 answers
22k views

what is the sudo -i command [duplicate]

What does the sudo -i command do and in which situations would it be used. read it using the man sudo command but i'm looking for a more diluted discription to help me understand better.
user avatar
2 votes
2 answers
3k views

Difference between `sudo su` and `sudo fish` [duplicate]

I am running fish (Friendly Interactive Shell) as my standard shell in Ubuntu 14.04, rather than bash. I noticed the following behaviour and don't know, if any of these are the preferred one to gain ...
user avatar
  • 384
-1 votes
2 answers
3k views

difference between sudo su - and su - [duplicate]

I have tried in Google but couldn't get exactly what I need. Could somebody explain the difference between sudo su - & su - Thank you.
user avatar
  • 96.4k
4 votes
2 answers
3k views

What is the difference between sudo -i and su? [duplicate]

It seems as if there is no difference whatsoever. When the whoami or id commands are run, they all yield root credentials. Is this an illusion? If the root account is disabled by default in Ubuntu, ...
user avatar
0 votes
1 answer
2k views

accessing Root shell [duplicate]

I'm able to access the root shell via the following commands: sudo -i sudo su (after providing the user password) or su (after providing the root password) What is the difference between them? I ...
user avatar
0 votes
2 answers
837 views

What is sudo -i [duplicate]

What does this command? sudo -i? I'm not sure if I should have made a post with just this question, but since I'm a Linux newbie and I have a lot more questions and doubts, I decided to go ahead and ...
user avatar
1 vote
2 answers
136 views

Sudo and su simultaneously? [duplicate]

To switch between users sometimes sudo su newuser is used. What is meaning of sudo su together? Can anyone tell exactly how they both command together work?
user avatar
0 votes
1 answer
49 views

distinction between different "types" of root access in bash? [duplicate]

What's the distincton between: sudo su - and su -i and where would one be preferred over the other? -, -l, --login Start the shell as a login shell with an environment similar to a ...
user avatar
0 votes
0 answers
33 views

Ubuntu User Differences [duplicate]

When i open the terminal and type su XXXXX where terminal open in the name of XXXXX , it ask for password and switched. Am i not already there in the first place when i opened the terminal? So ...
user avatar
  • 229
1 vote
0 answers
33 views

Bash - reload profile or bashrc when switching to root [duplicate]

Just moved over to ubuntu land from fedora (wanted try the budgie build). I'm fed land I had a script (from Fedy - posted below.) that changed my prompt to red when I logged into the root shell with ...
user avatar
0 votes
0 answers
18 views

Meaning of bash prompts [duplicate]

Trying a VPS (hosting). I have installed Ubuntu 16.04 and created a user admin. Now I'm trying: ssh admin@185.149.129.42 The prompt becomes just a $. I try: sudo su root The prompt has become ...
user avatar
  • 523
312 votes
2 answers
465k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the Internet,...
user avatar
  • 4,279
20 votes
7 answers
7k views

Why is a user with root privileges not in ~ anymore?

Just out of curiosity, I would like to know why, when I log in as root, I am not in /home/user anymore. What's the reason and what does /root directory do exactly? I'm not an advanced user. Please ...
user avatar

15 30 50 per page