Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
command line fu & tips

Command line tips

1.list all keycode

    xmodmap -pke

2.rename当前目录和子目录下所有.html.erb.html

    find . -name "*html.erb" -exec rename s/html\.erb/html/ {} \;

3.用wget下载整个网站

    wget -U "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17" -r -p -k -nc -o down.log http://psg.com/\~dlamkins/sl/

4.SSH登录服务器时自动attach tmux

[ -z $TMUX ] && tmux list-sessions 2>/dev/null && tmux a

更多: http://unix.stackexchange.com/questions/48993/how-to-effectively-use-screen-and-ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.