📜  su - 和 su - 任何代码示例之间的区别

📅  最后修改于: 2022-03-11 14:56:21.459000             🧑  作者: Mango

代码示例1
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.