I really want to know this. I don't always want to open a terminal then press Up arrow a couple of time or copy paste

  • Do you want the terminal to guess what you want to do? – user589808 Feb 2 '17 at 12:50
  • 2
    You can use control + r to search commands. – vembutech Feb 2 '17 at 12:53
  • No, I want it to be a specific line. – EraySP909 Feb 2 '17 at 13:00
  • @Zanna WINEPREFIX=~/.wineCustom/SteamBrawlhalla wine ~/Downloads/FILENAME – EraySP909 Feb 2 '17 at 13:25
  • 1
    Don’t you want to create a script or an alias? – Melebius Feb 2 '17 at 14:31

You can make a profile in Gnome terminal that automatically opens a script every time you open a Terminal.

Open a terminal and make a script in your home dir (ctrl-alt-t).

nano test

Enter your script, change the command and echo text to whatever you want

echo "input syntax"
read command
#input command here instead of ls
ls "$command"

save and exit. (ctrl-x, y)

Now open a terminal (ctrl-alt-t) Select Edit --> Profile prefferences.

Select run a custom command:

Custom Profile

The next time you open a terminal it runs the script waiting for your input and finishes by opening bash.


Not the answer you're looking for? Browse other questions tagged or ask your own question.