I'm relatively new to Linux and all of these helpful community forums. I was curious about running a command from a terminal that would open another terminal and run the proceeding command without switching. I'm not sure how clear that sounds, what I'm trying to do is run
avahi-daemon avahi-browse -a -t
but as you can tell avahi-browse -a -t would need to be run in a new terminal. How can I run this line of code in one terminal and have it run the code automatically in a new terminal?
gnome-terminal
is there even a work around to force a command into a terminal?
update:
avahi-daemon && gnome-terminal -x sh -c avahi-browse -a -t
Option “-x” is deprecated and might be removed in a later version of gnome-terminal.
Option “-e” is deprecated and might be removed in a later version of gnome-terminal.
Use “-- ” to terminate the options and put the command line to execute after it
nothing happens with
avahi-daemon && gnome-terminal -- sh -c avahi-browse -a -t