Closed PoBlue closed 6 years ago
工具🔧
grep "match_pattern" file_1 file_2 file_3 ...
find review-data/ -name "46733*"
history
!
!123
history | grep ls
ls
工具🔧
grep "match_pattern" file_1 file_2 file_3 ...
find review-data/ -name "46733*"
history
, 查看过去使用过的命令,用!
加数字可以调用回过去的命令,如!123
。加上 grep 来用超快搜索出以前用过的命令,如history | grep ls
, 就可以找出过去带有ls
的命令了