You are viewing a single comment's thread from:
RE: Linux tricks I use in day to day work
Another sweet Bash shortcut: ALT + . it will paste the previous command last argument. Press it again to browse another previous commands arguments (it always takes only last argument but still this is useful). For example:
$ grep -B2 -A20 NullPointerException myapp.log > npe.txt
$ less <press ALT .>
$ less npe.txt
Thanks, You remind me one more ;-) If you made a typo in command you can replace character(s) and run it again using substitute feature ;-)