📅  最后修改于: 2022-03-11 14:56:21.459000             🧑  作者: Mango
su - logs you in completely as root, whereas su makes it so you are pretending to be root. The most obvious example of this is that ~ is root's home directory if you use su - , but your own home directory if you use su . Depending on your system, it may also mean differences in prompt, PATH , or history file.