Home  >  Q&A  >  body text

linux - 说说你觉得最狂霸酷炫屌炸天的命令

比如:

pwd | pbcopy

mac下是拷贝当前路径到黏贴板

最好写上注释, 对于没有注释的新手们不要乱试啊,乖,出问题了踩答案啊,为毛踩我的问题,看我开的头多好的,没想到楼歪这么厉害.....真是的, 看来TDD还没死,同志们请用你们的大脑编译器跑一下下面这个测试,跑挂了的请自觉修过测试:

def 狂霸酷炫 = (yourCommands) => {
    yourCommands.forEach((command) => {
        assert(command().userReaction).not.contains("草")
        assert(command().userReaction).contains("Woww")
    })
}

Ref: stackoverflow

高洛峰高洛峰2745 days ago1419

reply all(40)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 11:49:43

    pgrep XXX|xargs kill

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:49:43

    netcat network pipe, communication between multiple machines, etc.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:49:43

    kill 1
    

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:49:43

    cd ..

    The best command

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:49:43

    top

    I seem to be a dot symbol

    reply
    0
  • 黄舟

    黄舟2017-04-17 11:49:43

    Let me tell you something weakly grep -Rn --include="*.php" "hello world" . I use it often.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:49:43

    The safest command for cat

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:49:43

    Shutdown......

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:49:43

    If you don’t die, you won’t die. I just don’t understand why!

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:49:43

    code:

    ctrl + c
    

    reply
    0
  • Cancelreply