I am interested to try to improve my practical skills and efficiency a bit when running commands from the terminal
when running gentoo.
Supposing you have a list of commands that you regularly run one after the other in gentoo.
If you wanted to have a convenient way to repeatedly run them consecutively in the same order you could
put them in a file and make it executable and then run a job either interactively or in background mode that would then run
each command in sequence for you.
But you could also (as I do) use the history command to list those commands in sequence showing the last time you issued them all
one after the other yourself by hand.
What I do is to use the exclamation mark symbol and the number of each command and then submit that to the terminal
by hand iteratively increasing the integer number by plus one as I go along.
E.g.
Code: Select all
chump# !5
chump# !6
chump# !7
chump# !8It works quite well I find.
OUt of interest, is there a command which would run them one after another something like this:
Code: Select all
champ# !5-8Suggestions welcome.
Regards
Michael Fothergill




