Via a bash command, I want open a terminal and, from the new terminal, execute a simple bash command.
I tried:
gnome-terminal -- "/bin/bash -c ls"
But I got this error:
I don't understand the error and I cannot find an example anywhere for help.
-e
option. It's taking that command as the name of a program to run, not a shell command to execute. – Patroclusgnome-terminal -- /bin/bash -c ls
. No quotes. – Susceptivegnome-terminal -- /bin/bash -c 'ls; sleep 3'
– Susceptive