比如:
pwd | pbcopy
mac下是拷贝当前路径到黏贴板
最好写上注释, 对于没有注释的新手们不要乱试啊,乖,出问题了踩答案啊,为毛踩我的问题,看我开的头多好的,没想到楼歪这么厉害.....真是的, 看来TDD还没死,同志们请用你们的大脑编译器跑一下下面这个测试,跑挂了的请自觉修过测试:
def 狂霸酷炫 = (yourCommands) => {
yourCommands.forEach((command) => {
assert(command().userReaction).not.contains("草")
assert(command().userReaction).contains("Woww")
})
}
Ref: stackoverflow
伊谢尔伦2017-04-17 11:49:43
rm -rf /
I just went online and found that my answer was downvoted by several people. Did you try this command?
巴扎黑2017-04-17 11:49:43
Execute the last command in the form of sudo
, which is used if you forget to add sudo
sudo !!
巴扎黑2017-04-17 11:49:43
Conscience commands, sincerely harmless, some commands require the installation of corresponding software packages:
cmatrix
Simulate the scene in The Matrix where green characters fall from above in the terminal. telnet towel.blinkenlights.nl
Telnet to watch Star Wars, if you have IPV6 you can see the color version. sl
A train passes through the terminal. bb
One of the most awesome commands is an application demonstration of aalib. It uses constantly changing characters to compose a video in the user terminal, and the effect is very cool. aalib
This product lets users understand that there is nothing that cannot be accomplished by ASCII. asciiquarium
ASC II Aquarium. Whoever uses it knows.
PHP中文网2017-04-17 11:49:43
There are two that impressed me the most: shutdown -h
. I wanted to see how to use it, but I instantly felt cheated. sudo rm -rf /
, it was too late to recover and Ctrl+C, and then various recovery. .
迷茫2017-04-17 11:49:43
Can I still view this post? They are all a group of inhumane orders that I dare not carry out
Let me talk about a more useful one, especially when you need to transfer files across systems, you can quickly set up a file download service
python -m SimpleHTTPServer
Use Python to build a simple web server, which can be accessed through http://$HOSTNAME:8000.