
如何從CentOS 6 及更高版本上+Run a command
開啟的視窗中刪除歷史記錄?AltF2
答案1
打開終端機並運作:
dconf reset /org/gnome/shell/command-history
或者
gsettings reset org.gnome.shell command-history
對於 gnome2:
gconftool-2 -s -t string /apps/gnome-settings/gnome-panel/history-gnome-run []
答案2
我仍然使用RHEL 6,所以我修改了以下文件
~/.gconf/apps/gnome-settings/gnome-panel/%gconf.xml
我怎麼找到它?對於 home 下的所有 XML 文件,grep 通常在 alt-f2 下使用的字串