sudo !!
echo !! > new_script.sh
!! | grep LinuxExecute last command started with ls:
!lsArguments:
ls !^  # first arg of prev cmd
ls !$  # last arg of prev cmd
ls !*  # all args of prev cmd
ls !ls:2  # second arg of prev ls cmdExecute command with given history number:
!2039Hide command from history (use space before cmd):
 ls ~/eagle 
No comments:
Post a Comment