简体   繁体   English

终端在用户名osx之前显示localhost

[英]terminal displays localhost before username osx

I'm working on getting GIT installed so starting to use my terminal more. 我正在安装GIT,因此开始更多地使用我的终端。 Noticed something odd though. 注意到一些奇怪的东西。 The word localhost:~ before my username 我的用户名前的单词localhost:~

so localhost:~ username$ 所以localhost:~ username$

Is this something I need to be worried about? 这是我需要担心的事情吗? Just I'm following some tutorials and all of them so far just have the user name like 我正在关注一些教程,到目前为止,所有教程的用户名都像

username$

Done a bit of searching and found nothing on this so far and just wanted to check before I move on any further. 进行了一些搜索后,到目前为止,仍未发现任何内容,只是想检查一下,然后再继续进行。 Thanks 谢谢

using osx 10.8.5 使用osx 10.8.5

Nothing to worry about. 完全不用担心。 localhost is the name of your machine, followed by :, followed by the directory you're in, in this case ~ , which is your home directory. localhost是计算机的名称,后跟:,然后是您所在的目录,在本例中为~ ,这是您的主目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM