Use "sudo -i" instead of "sudo su -"

`sudo su -` is redundant, as you are asking the system to elevate you after you have already elevated.

If what you actually want is to get a login environment, the `sudo -i` flag is designed exactly for that.
This commit is contained in:
Jeremy Visser
2017-06-20 18:05:53 +10:00
committed by Andrew Chen
parent 01b9cf25f3
commit a877e63b8b
+1 -1
View File
@@ -50,7 +50,7 @@ releases](https://github.com/kubernetes/kubeadm/blob/master/CHANGELOG.md)
For each machine:
* SSH into the machine and become root if you are not already (for example,
run `sudo su -`).
run `sudo -i`).
* If the machine is running Ubuntu or HypriotOS, run: