Ale*_*dro 5 macos terminal path macos-high-sierra
因此,我在终端中收到此错误:
-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
Run Code Online (Sandbox Code Playgroud)
经过研究后,我相信这可能与我有关.bash_profile。
但是,我只知道如何通过终端打开隐藏文件,并且由于无法访问(由于此错误),如何通过Finder打开隐藏文件?
打开终端并粘贴以下命令
$ defaults write com.apple.Finder AppleShowAllFiles true
$ killall Finder
Run Code Online (Sandbox Code Playgroud)
所以我能够找到解决方案:
当您打开 Finder 窗口时,如果您想查看隐藏文件(即以 开头的文件.,.bash_profile只需使用以下命令:
Shift+ Cmd+>
从那里,我发现我的.bash_profile已经超过1GB了!(有一些东西导致递归地重复其自己的配置文件设置......)
修复该问题后,终端现在可以正常工作了。
| 归档时间: |
|
| 查看次数: |
951 次 |
| 最近记录: |