Bash 小技巧 !!

标题中的’!!’并不是感叹词,而是要提到的主角’!!’

ln -s ~/tools /usr/bin/tools
> Permission denied

遇到过这种情况?
一般人会…

sudo ln -s ~/tools /usr/bin/tools

更简单的做法: 

sudo !!

忘记初始化kerberos也一样 

ssh 10.3.x.xx 
> no permission
kinit && !!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>