Linux using Tricks z command

Source: Internet
Author: User

Dear bo Friends, Hello, I was a bit busy last month, so there is no update blog, this time for you to bring the "Z command"

When we use the "CD" command to enter a particularly long directory, it will feel very troublesome, Z command can solve the problem

Z Source of command: https://github.com/rupa/z/blob/master/z.sh

Copy and paste the source code of the z command to the Linux home directory with the file name "z.sh"

Use "source z.sh" for it to take effect, now you can use the Z command

Z Command + directory name (this directory must be previously skipped)

The steps are as follows:

[[email protected] ZYJTF 孤云暮雨 ~] # pwd /root [[email protected] ZYJTF 孤云暮雨 ~] # z - bash : z:  command not found [[email protected] ZYJTF 孤云暮雨 ~] # vim z.sh [[email protected] ZYJTF 孤云暮雨 ~] # source z.sh [[email protected] ZYJTF 孤云暮雨 ~] # cd /etc/sysconfig/network-scripts/ [[email protected] ZYJTF 孤云暮雨 network-scripts] # cd [[email protected] ZYJTF 孤云暮雨 ~] # z network-scripts [[email protected] ZYJTF 孤云暮雨 network-scripts] # pwd /etc/sysconfig/network-scripts [[email protected] ZYJTF 孤云暮雨 network-scripts] # cd [[email protected] ZYJTF 孤云暮雨 ~] # z common:     /etc/sysconfig/network-scripts 12          /etc/sysconfig/network-scripts


This article is from "ZYJTF Lone Cloud Twilight" blog, please be sure to keep this source http://zhangdaifu.blog.51cto.com/11848193/1963407

Linux using Tricks z command

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.