Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MacOS终端\u作为用户名-2_Macos_Terminal_Macos Sierra - Fatal编程技术网

MacOS终端\u作为用户名-2

MacOS终端\u作为用户名-2,macos,terminal,macos-sierra,Macos,Terminal,Macos Sierra,我的MacOS终端中的用户名显示为username-2,而我不知道-2 Last login: Mon Sep 3 17:59:39 on ttys001 501 HacSec-2:hacsec ~$ 我得到了答案,并使用以下命令将终端用户名固定为正常: # sudo scutil --set HostName (Add Your Username Here) 更多信息请访问

我的MacOS终端中的用户名显示为
username-2
,而我不知道
-2

Last login: Mon Sep  3 17:59:39 on ttys001
501 HacSec-2:hacsec ~$

我得到了答案,并使用以下命令将终端用户名固定为正常:

# sudo scutil --set HostName (Add Your Username Here)
更多信息请访问