双击.sh文件打开终端并执行一系列命令?

我正在尝试双击执行此操作的文件:

#!/bin/bash #Mount USB Jump, Copy files to it, Unmount it. [open terminal (so that I can see what 's going on)] pmount /dev/sdc JUMP sleep 2s cp -p -u source/path/ destination/path/ read -p "Press enter to unmount Jump or ctrl c to abort." pumount /dev/sdc [close terminal] 

我不知道怎么写的两行是[open terminal]和[close terminal]谁知道怎么做?

编辑:非常感谢大家,我把你的输入捆绑在一起,最终到达那里。

我双击.sh文件,上面写着:’terminal -hold -e /path/to/JumpBkp.sh’然后打开一个终端并在屏幕上显示整个纲要。

在如此短的时间内收到如此多的投入很酷。 非常感谢。

第2编辑:我想出了一个让它更甜的选项。 我张贴它以防万一有人碰到这个线程。

 terminal -hold -e bash '/path/to/JumpBkp.sh' 

‘bash’让我不知道这个问题:“警告:找不到’/path/to/file.sh’,改为启动’/ bin / bash’。请检查你的个人资料设置。”

Cheerio!

gnome-terminal -e command

要么

terminal -e command

有关详细信息,请参阅此处: 如何创建一个打开终端窗口并在其中执行命令的脚本?

同样感兴趣的是: 如何在Nautilus中运行可执行脚本?

传递多个命令的一些创造力: 从脚本向gnome-terminal传递多个命令