我在Ubuntu 服务器gnome-terminal
上安装并发现了这个问题。
当我使用“ File
”->“ New Tab
”打开新选项卡时,gnome-terminal 将打开一个新选项卡,然后我尝试source
在“ ”后运行“ ”命令#
:
# source
sh: 1: source: not found
#
将会提示“ sh: 1: source: not found
”。
因此,Ubuntu 服务器中的 gnome-terminal 将sh
在新选项卡中运行。这将导致终端up
中的箭头键问题sh
:https://unix.stackexchange.com/questions/103608/is-there-any-reason-why-i-get-a-when-i-press-up-arrow-at-the-console-login-sc
我必须在“ bash
”之后运行“ #
”才能获得“ bash
”终端,以修复“ up
”箭头键问题:
# source
sh: 1: source: not found
# bash
root@test:~# source
bash: source: filename argument required
source: usage: source filename [arguments]
root@test:~#
Ubuntu 桌面上的 gnome-terminalbash
在新选项卡中总是使用“ ”。
如何设置 Ubuntu 服务器上的 gnome-terminal在点击“ ”->“ ”时使用“ bash
”而不是“ ”?sh
File
New Tab