hailongs

mac 下搜索你们常用的命令是什么

  •  
  •   hailongs · Jan 4, 2016 · 3670 views
    This topic created in 3806 days ago, the information mentioned may be changed or developed.

    1.搜索文件?
    2.搜索文件中的关键字?

    17 replies    2016-01-06 23:41:13 +08:00
    SoloCompany
        1
    SoloCompany  
       Jan 4, 2016 via iPhone
    1 find | grep
    2 grep . -R
    foru17
        2
    foru17  
       Jan 4, 2016   ❤️ 1
    history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
    查看最常用的 10 个命令
    =====

    1 1643 24.7477% ls
    2 545 8.20907% cd
    3 507 7.63669% vim
    4 410 6.17563% j
    5 393 5.91957% gl
    6 329 4.95557% git
    7 281 4.23257% up
    8 260 3.91625% gs
    9 172 2.59075% service
    10 167 2.51544% sudo
    hackpro
        3
    hackpro  
       Jan 4, 2016
    ag named as silver searcher
    hailongs
        4
    hailongs  
    OP
       Jan 4, 2016
    @foru17 pt 是否可以搜文件?另外, pt 这个东西怎么下来着,我给忘了。。。。
    hailongs
        5
    hailongs  
    OP
       Jan 4, 2016
    @hackpro 啥意思
    shao
        6
    shao  
       Jan 5, 2016
    难道不是 Spotlight ?
    FrankFang128
        7
    FrankFang128  
       Jan 5, 2016
    fzf
    slixurd
        8
    slixurd  
       Jan 5, 2016
    locate/find
    Shintaku
        9
    Shintaku  
       Jan 5, 2016
    1. find -name FILE_NAME
    2. mdfind "KEY_WORD"
    foru17
        11
    foru17  
       Jan 5, 2016
    @hailongs 我才发现我理解错 LZ 的标题了
    cxbig
        12
    cxbig  
       Jan 5, 2016
    1. find
    2. mdfind
    3. locate
    bravejoe
        13
    bravejoe  
       Jan 5, 2016
    1. find
    2. ag
    hailongs
        14
    hailongs  
    OP
       Jan 5, 2016
    @lyoe 你们用 find 每次都要输入密码,不烦吗???有没有 find 免输密码的方法???
    bravejoe
        15
    bravejoe  
       Jan 5, 2016
    @hailongs find 命令不需要密码啊,难道我们说的不是同一件事儿?
    hailongs
        16
    hailongs  
    OP
       Jan 6, 2016 via iPhone
    @lyoe 我用啊。艹。。说权限没有,每次都报拒绝
    kotokz
        17
    kotokz  
       Jan 6, 2016
    ag the_silver_searcher
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2642 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 01:59 · PVG 09:59 · LAX 18:59 · JFK 21:59
    ♥ Do have faith in what you're doing.