【发布时间】:2018-06-03 06:34:32
【问题描述】:
所以我在终端中收到此错误:
-bash(637,0x7fffa5467340) malloc: *** mach_vm_map(size=18446744071947448320) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
-bash: xrealloc: cannot allocate 18446744071947447824 bytes
经过一番研究,我相信这可能与我的.bash_profile有关。
但是我只知道如何通过终端打开隐藏文件,并且由于我无法访问它(由于此错误),如何通过 Finder 打开隐藏文件?
【问题讨论】:
-
您可以打开 TextEdit.app 并编写一个 shell 脚本以在 TextEdit.app 中打开您的文件。问题是,我不知道如何在不打开终端的情况下使该脚本可执行。
-
另一种解决方案:重新启动 Mac 进入救援系统,打开终端并编辑主目录中的文件。您可能需要
sudo才能获得访问权限。 -
应将以下答案之一标记为已接受的答案。
标签: macos terminal path macos-high-sierra