//雪花飘落特效 //右上角github跳转   

Linux ag命令详解

一、简介

Ag是用C++写的,搜索速度快,比grep更有效率.

二、安装

# ubuntu/debian
sudo apt-get install silversearcher-ag
# centos
sudo yum install the_silver_searcher
# mac
brew install the_silver_searcher
ag "锁"

RHEL7+

rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install the_silver_searcher
RHEL7-

wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64/the_silver_searcher-0.14-1.1.x86_64.rpm
rpm -ivh the_silver_searcher-0.14-1.1.x86_64.rpm
posted @ 2021-09-28 15:18  农夫运维  阅读(1716)  评论(0编辑  收藏  举报