Ubuntu下的启动终端窗口的命令为:gnome-terminal,可以通过–geometry 参数用来修改启动的行列数与窗口坐标:
$ gnome-terminal –help-window-option
Usage:
gnome-terminal [OPTION…]
Window options; if used before the first –window or –tab argument, sets the default for all windows:
–show-menubar Turn on the menubar
–hide-menubar Turn off the menubar
–maximize Maximise the window
–full-screen Full-screen the window
–geometry=GEOMETRY Set the window size; for example: 80×24, or 80×24+200+200 (ROWSxCOLS+X+Y)
–role=ROLE Set the window role
–active Set the last specified tab as the active one in its window
(二)修改步骤:
1. 打开一个终端窗口,将它的位置和大小调整到你希望它启动时默认的位置;
2. 执行命令:xwininfo,记下输出的最后一行;
3. 执行命令:gconf-editor,打开gnome配置编辑器, 找到如下键:
/desktop/gnome/applications/terminal/exec
并修改该项的值为:
gnome-terminal –geometry 120×30+154+70
说明:
90: 宽度
46: 高度
154:横坐标
70: 纵坐标