比如:
pwd | pbcopy
mac下是拷贝当前路径到黏贴板
最好写上注释, 对于没有注释的新手们不要乱试啊,乖,出问题了踩答案啊,为毛踩我的问题,看我开的头多好的,没想到楼歪这么厉害.....真是的, 看来TDD还没死,同志们请用你们的大脑编译器跑一下下面这个测试,跑挂了的请自觉修过测试:
def 狂霸酷炫 = (yourCommands) => {
yourCommands.forEach((command) => {
assert(command().userReaction).not.contains("草")
assert(command().userReaction).contains("Woww")
})
}
Ref: stackoverflow
adb root,sudo su。
Get external network ip curl ifconfig.me
You are all bad people!
真的是狂欢呀。 If there is any tool worth recommending, I think the multiplexer tmux is worth owning
Some additions to @lidashuang’s answer on the 1st floor,
For example, if you use vi to open nginx, the default configuration is mistakenly written as cd:
Change to vi
Don’t try it! ! ! ! ! ! ! !
Please see here:
The tragedy caused by a space
For example:
rm -rf /tmp/lib/nvidia-current/xorg/xorg
There is also a coder’s pseudo code on how to express loneliness on Valentine’s Day:
Add one more: ctrl-x e
Rapidly invoke an editor to write a long, complex, or tricky command
From: http://www.commandlinefu.com/
dd if=/dev/null of=/dev/sda