You are viewing a single comment's thread from:

RE: Linux tricks I use in day to day work

in #utopian-io8 years ago

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 
Sort:  

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 ;-)

$ whozmi
-bash: whozmi: command not found
$ ^z^a
whoami
jamzed

Coin Marketplace

STEEM 0.09
TRX 0.31
JST 0.033
BTC 110643.13
ETH 3931.50
USDT 1.00
SBD 0.59