To Index

 See the UNIX Programmers Manual or via % man csh 


 % history
  displays the history event list.


 % history 4
  displays the most recent 4 events in the event list.


 % history -r 4
  displays the most recent 4 events, but reverse the order by listing
  the most recent first rather than the oldest first.


 % !!
  re-execute the last command.


 % !4
  re-execute event number 4.


 % !v
  re-execute the most recent event which started with the string 'v'.


 % !! | more
  re-execute the last command, but now pipe it to more.


 % ^bad^good^
  re-execute the last command after substituting the string 'good' for
  the string 'bad'.


 % !7:s/str1/str2/
  substitute the first occurrence of str1 with str2 in event 7 and execute.


 % !7:s/str1/str2/:p
  substitute the first occurrence of str1 with str2 in event 7, display
  the result and enter it in the event list, but DON'T execute.


 % !?str1?
  repeat the most recent command which contains str1.


 % !-2
  execute the second most recent command.

To Index