Solution from Run command on another(new) terminal window:

run command gnome-terminal -x sh -c "ls ; bash"

in which - gnome-terminal -x means to execute system command sh.

  • sh -c means the commands for bash to execute are read from the first non-option argument command_string "ls; bash".

Yang Song

Ph.D. Student in Robotics