当我连接Linux时,我处于/root
图书馆之下。
[root@localhost ~]# ls
anaconda-ks.cfg packstack-answers-20170515-095857.txt
keystonerc_admin tmp-packstack-answers-20170515-095856.txt
keystonerc_demo
有两个问题:
为什么/root
有~
在[root@localhost ~]
,但不是根本?
因为如果我进去/tmp
,那就是[root@localhost tmp]#
。
如果可以方便地进行配置,为什么要与linux相连,而我却在之下/root
,而不是在linux下,/
好处是什么?
首先,您登录到home directory
密码文件(/etc/passwd
)中定义的密码。
该~
只是表明你是目前在你的home目录,也可以作为一个快捷方式。如果您想进入家中的something
目录,则可以cd ~/something
。
你不希望登录,因为例如您的配置文件配置和连接日志的安全考虑任何公开目录。
更改目录(cd
)并不麻烦。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句