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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM