Z: Faster cd navigation

Source: Internet
Author: User

Z is quite practicalCdCommand enhancement script. bash and zsh are supported currently. With z, we can implement faster navigation on the Linux Command Line.

Install

To install z in your system, run the following commands:

Mkdir ~ /Codecd ~ /Codegit clone https://github.com/rupa/z.gitecho 'source ~ /Code/z. Sh'> ~ /. Zshrcsource ~ /. Zshrc

Note: If you are using bash. ZshrcReplace. Bashrc. In this way, z can be used normally.

Usage

Z willCdDirectory stored in~ /. ZFile. Once a record exists, you can directly use z to navigate the directory. For example:

Z co

Go~ /CodeDirectory. Z is matched by regular expressions and takes you to the directory with the highest frequency.

In addition, you can select different navigation behaviors by specifying different options:

  • -R: Navigate to the top directory
  • -T: Navigate to the recently accessed directory
  • -L: List directories by usage frequency

It is worth mentioning that z also supports Tab completion, which will save you a lot of time.

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.