or enter the wonderful land of regular expressions -works in bash not sure if it is shell specific though
!! - executes the last command () !<exp> - recalls and executes the last command that matches the <exp> and my personal favourite ^exp1^exp2^ replaces exp1 with exp2 in the last command Yes ... my first system was some late 70s BSD My friends almost fell of their chairs laughing when they saw me using these aqnachronistic commands to do command line manipulations..... Joe On Saturday 23 February 2002 07:45, you wrote: > Use the up arrow on your keyboard > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Mithrilhall2000 > Sent: Saturday, February 23, 2002 7:28 AM > To: [EMAIL PROTECTED] > Subject: [newbie] Shell question > > How do you get the last shell command you called to come back up? > > Example: > > I type: cp index.php /var/www/html > > > I don't want to keep typing this. In windows you can do something > (hitting > F3 or something) to bring up the last command you typed in. I thought I > read > somewhere how to do that in Linux but it's been so long I can't > remember. > > Thanks > Mithrilhall > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
