PPRuNe Forums - View Single Post - UNIX command for line buffer
View Single Post
Old 26th February 2007 | 13:00
  #2 (permalink)  
sir
Basia Arma
25 Anniversary
 
Joined: Apr 2001
Posts: 64
Likes: 26
From: button moon
Not sure if this is what you're after :

typing "history" gives you a list of the last commands.

To get a historical command to rerun use the exclamation mark - eg :

unix%: history

1001 vi render.php
1002 vi add_item.php
1003 vi render.php
1004 vi edit_blog_item.php
1005 vi edit_page.php
1006 vi edit_blog.php
1007 history

unix%: !h

...will run the history command again - the last one beginning with h.

or

unix%: !1003

will run item 1003 (vi render.php) from the list
sir is online now  
Reply