0

我不明白这两者之间的区别。他们似乎都把我带到了根目录。有区别吗?

4

2 回答 2

1

cd ~ takes you to the home directory

cd / takes you to the root directory

these will be the same if you are running it as root

于 2014-04-07T00:28:36.727 回答
0

“cd ~”通常会将您带到登录用户的主目录。

于 2014-04-07T00:26:12.290 回答