shell/终端设置存储在哪里?

aki*_*aki 33 command-line settings gnome-terminal

我更新了我的 Ubuntu,但它在安装过程中崩溃了,我无法恢复它(我的硬盘崩溃了)。我更换了硬盘并重新安装了 ubuntu

我保存了所有重要的文档(书签、文档等...)

我无法恢复的一件事是我的 shell 中的配置文件(我更改了配色方案、标题、回滚行数等......)

我在哪里可以保存它以便下次发生某些事情时我不必重新设置我的终端设置?

lga*_*rzo 33

GNOME 终端配置文件存储在:~/.gconf/apps/gnome-terminal/profiles.

(不过,您可能希望备份整个.gconf目录。)

  • 这现在已经过时了。因此,如果您的 `~/.gconf` 为空,请参阅 [answer by Abell](http://askubuntu.com/questions/83731/where-are-shell-terminal-settings-stored/353098#353098) 以获得更新使用`dconf`/`gsettings`的方法。 (3认同)

Tim*_*ell 7

较新的 gnome-terminal(我认为是 3.8+)将其配置存储在 dconf 而不是 gconf 中。

gsettings list-recursively | grep -i org.gnome.Terminal
Run Code Online (Sandbox Code Playgroud)

有关更改的更多信息https://askubuntu.com/a/91409/79266