I want to create a shortcut to run a command with keyboard shortcut But when I press "alt+ctrl+a" terminal open and immediately close.
Please help me to edit below command for prevent from close after ran it.
gnome-terminal -e "vnstat -ru -i wlan0 -h"
Try it with this command instead:
The
exec bash
part at the end causes to start abash
that replaces the current shell (also abash
).create a keyboard shortcut with the following command : gnome-terminal . Thats it.