Linux under directory quick switch gadget BD

Source: Internet
Author: User

assume that the directory path is now: /tmp/ab/bc/cd/de/ef/fg/ab/zz/xx/yy , how to quickly switch to EF directory?

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/95/2A/wKiom1kSgKjiKQxiAABDGtjNZz0524.jpg "title=" 1.jpg "alt=" wkiom1ksgkjikqxiaabdgtjnzz0524.jpg "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 300px;height:82px; "/>

typically used CD command to do directory switching, more cumbersome, at this time can be used BD Tools


First, installation BD :

# wget--no-check-certificate-o/usr/bin/bd HTTPS://RAW.GITHUB.COM/VIGNESHWARANR/BD/MASTER/BD

# chmod +RX/USR/BIN/BD

# echo ' Alias bd= '. Bd-s "' >> ~/.BASHRC

# source ~/.BASHRC

//-si : Ignores the case of the directory name, - S : Do not ignore

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M02/95/2A/wKioL1kSgLLw30NtAAGD_2D7SIA735.jpg "title=" 2.jpg "alt=" wkiol1ksgllw30ntaagd_2d7sia735.jpg "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 1000px;height:200px; "/>

To enable auto-complete functionality:

# Wget-o/ETC/BASH_COMPLETION.D/BD HTTPS://RAW.GITHUB.COM/VIGNESHWARANR/BD/MASTER/BASH_COMPLETION.D/BD

650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/95/2A/wKiom1kSgLyQn4VZAAHO_9td37o538.jpg "title=" 3.jpg "alt=" wkiom1ksglyqn4vzaaho_9td37o538.jpg "width=" 1100 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 1100px;height:300px; "/>

# SOURCE/ETC/BASH_COMPLETION.D/BD


second, back to the beginning of this question, how to quickly switch to EF directory?

# BD EF

If you ever want to go directly into AB directory, you can:

# BD AB

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M00/95/2A/wKioL1kSgMqBpBIIAABMmltEFOI485.jpg "title=" 4.jpg "alt=" wkiol1ksgmqbpbiiaabmmltefoi485.jpg "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 150px;height:150px; "/>

Just enter " BD < start with a few letters > ", you can go directly to the corresponding directory.

If there is more than one directory with the same name in the hierarchy, BD will switch to the directory closest to the current directory, such as in/tmp/ab/bc/cd/de/ef/fg/ab/zz/xx/yy There are two directories with the same name AB, then :

650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/95/2A/wKioL1kSgNbzmrPGAABH8QOFGms076.jpg "title=" 5.jpg "alt=" wkiol1ksgnbzmrpgaabh8qofgms076.jpg "width=" 280 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 280px;height:90px; "/>


This article is from the "Tiandaochouqin" blog, make sure to keep this source http://qiuyue.blog.51cto.com/1246073/1923982

Linux under directory quick switch gadget BD

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.