1.搜索文件?
2.搜索文件中的关键字?
1
SoloCompany 2016-01-04 19:48:36 +08:00 via iPhone
1 find | grep
2 grep . -R |
2
foru17 2016-01-04 20:25:58 +08:00 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 |
3
hackpro 2016-01-04 23:33:17 +08:00
ag named as silver searcher
|
6
shao 2016-01-05 00:09:06 +08:00
难道不是 Spotlight ?
|
7
FrankFang128 2016-01-05 00:11:36 +08:00
fzf
|
8
slixurd 2016-01-05 00:41:38 +08:00
locate/find
|
9
Shintaku 2016-01-05 01:21:14 +08:00
1. find -name FILE_NAME
2. mdfind "KEY_WORD" |
10
hackpro 2016-01-05 01:27:40 +08:00
|
12
cxbig 2016-01-05 04:00:03 +08:00
1. find
2. mdfind 3. locate |
13
lyoe 2016-01-05 11:34:08 +08:00
1. find
2. ag |
17
kotokz 2016-01-06 23:41:13 +08:00
ag the_silver_searcher
|