问题发生在 Linux命令行模式 下。

  • 问题描述
    当使用clear命令的时候,出现了下面的错误
~$ clear
terminals database is inaccessible
  • 一个可行的解决办法:
~$ export TERMINFO=/usr/share/terminfo

执行上面的命令之后,该错误被解决。

最好是将上面那条 export 命令添加到 .bashrc 中。


  • 参考链接:
  1. https://superuser.com/questions/319912/i-cant-clear-the-terminal-in-mac-os-x-lion-terminals-database-is-inaccessibl
GitHub 加速计划 / term / terminal
8
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:6 个月前 )
b8ff95d6 - Remove duplicated entries. - Fix whitespace. Co-authored-by: João Guerra <joca-bt@users.noreply.github.com> 1 个月前
f28f6587 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐