Make that last command into a Linux script

By | February 16, 2011

You have been trying combinations to see which command line options best fit your needs, and you’ve finally found it. Now let’s make that into a script. You could revert to the last command using your Up key, copy the string, create a new file, paste the string, save the file. Or you could simply

echo “!!” >

2 thoughts on “Make that last command into a Linux script

  1. leonardo

    thanks for the hint man “doing a script out of that, right now “

  2. Amrinder Arora

    Thanks – I teach UNIX system administration at GWU, and I have shared quite a few of your tips with the students. Manipulations of the commands run (adding/changing parameters, etc), saving those commands into a script etc, is frequent thing.


Leave a Reply

Your email address will not be published. Required fields are marked *