【问题标题】:Terminator/config Is not in .config fileTerminator/config 不在 .config 文件中
【发布时间】:2022-01-11 08:49:59
【问题描述】:

问题描述:

我正在尝试在 bash 脚本中使用终止符,但我不断收到错误消息,指出没有这样的文件或目录:~/.config/terminator/config。并防止终端在屏幕上弹出。但是,当我在终端上运行终结器时,会弹出窗口。所以我肯定安装了终结器,我只是不知道终结器/配置在哪里。

问题和问题摘要:

  1. 如何检查我的系统上是否存在终结器/配置?
  2. 我在哪里可以找到它,因为它不在 ~/.config 中?
  3. 为什么会发生这种情况?

我知道不起作用的解决方案和额外信息

  1. 卸载并重新安装。我在来这个网站问之前就这样做了。
  2. 这些是我第一次安装它时使用的命令:
  • sudo add-apt-repository ppa:gnome-terminator
  • sudo apt-get 更新
  • sudo apt-get install terminator
  1. 如果这很重要的话,我认为我在安装 terminator 时不在主目录中。

【问题讨论】:

    标签: bash ubuntu terminator


    【解决方案1】:

    如何检查我的系统上是否存在终结器/配置?

    使用“定位”查找文件:

    $ sudo apt install locate -y
    $ sudo updatedb # this is to update the file database
    $ locate config
    

    或者更好的是,使用 stat:

    $ stat ~/.config/terminator/config
    

    既然它不在 ~/.config 中,我在哪里可以找到它?

    如果文件不存在,当然是找不到的。

    也许自己创建文件。

    $ mkdir -p ~/.config/terminator/
    $ touch ~/.config/terminator/config
    

    为什么会这样?

    系统提供错误消息。因为它希望有文件,但事实并非如此。 请read the documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-05
      • 1970-01-01
      • 2013-07-04
      相关资源
      最近更新 更多