A great little tool, everyone who has used it says it is very useful!

Brief comment: As an engineer, the most common commands you type on the command line are cd and ls. How much time have you wasted over the years?
As a programmer or someone who spends a lot of time in the shell, you may often move around directories in an inefficient manner, especially if you frequently access the same directories every day.

For example, like this:

Of course, you may be a little more proficient in using it, and using Tab can save a lot of trouble, like this:

good! You saved about 20 typings, so kudos to you. You will also use mkdir to create a new directory and go directly to the new directory (cd !$). You can also remember the project directory, so you don't need the old ls to find files. But the real problem is that people are not computers. We can remember one or two, but it is impossible to remember them all. Our efficiency is not high enough.

Have you ever thought about it this way?

Now you only need j d (or j dev, j develop) to jump to the ~/Develop directory, and j p to jump to ~/Develop/project. Efficiency is greatly improved.

Check out the comparison:

How is this achieved?

You can do it with AutoJump. (GitHub address: wting/autojump)

According to the official introduction, it can browse system files in a faster way, which is not accurate, or very modest. By my absolute best estimates, using AutoJump saved me at least 100 hours, at least that much.

How does Autojump work?

Take a look at these two commands:

They work the same way. AutoJump remembers the cd command and uses j to enter all directories. What's more important is that AutoJump can perform fuzzy matching. It means that you only need to provide one letter to match the directory with the first letter that you have visited before.

What if there are two directories starting with p?

This is where it gets interesting.

The first time you type cd directory_name, AutoJump records the directory as an absolute path and assigns it a weight of 10.0 points.

for example:

Then enter the j -s command to see (s represents statistical information):

If you cd /var again, j -s later, see what happens?

Yes, the weight of this path has increased. For example, if you look at j -s on my computer, you will know at a glance what I usually do:

My first campus and fourth SodeSchool both contain the letter c, so which directory should AutoJump jump to?

Search the public account on WeChat: Architect Guide, reply: Architect Get Information.

Since campus has a low weight, j c will jump to the CodeSchool directory. If you repeat the j c command, it will jump to the campus directory.

If you don't like the path automatically set by AutoJump, you can set the match yourself:

You can set the following number, j c _4 means j c jumps to the fourth directory.

Advanced Features

  • jc (note there is no space, not j c above) only jumps in subdirectories, very suitable for finding nested logs

  • jo will open the matching directory under the operating system.

  • j -i increases the weight of the current directory

  • j -d reduces the weight of the current directory

  • j –purge removes all weights

Install AutoJump

AutoJump supports:

  • Python v2.6+ (except version 3.2)

  • Supported shells:

  • bash v4.0+

  • zsh

  • fish

  • tcsh (experimental)

  • clink (Windows, experimental)

You can install it through many Linux package installers. For MacOS, I recommend Homebrew’s brew install autojump, which is really simple and convenient.

Put Autojump under .bash_profile or .szhrc and enter the command line:

[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

It automatically checks if the script is available and loads it into the shell.

You can also clone the git repository and install it manually. Regardless, it's a very simple, stable tool.

In all the years I've used it, I've never regretted it.

Warehouse: https://github.com/wting/autojump

`How to learn hacking & network security

As long as you like my article today, my private network security learning materials will be shared with you for free. Come and see what is available.

1. Learning roadmap

There are a lot of things to learn about attack and defense. I have written down the specific things you need to learn in the road map above. If you can complete them, you will have no problem getting a job or taking on a private job.

2. Video tutorial

Although there are many learning resources on the Internet, they are basically incomplete. This is an Internet security video tutorial I recorded myself. I have accompanying video explanations for every knowledge point in the roadmap above.

The content covers the study of network security laws, network security operations and other security assessments, penetration testing basics, detailed explanations of vulnerabilities, basic computer knowledge, etc. They are all must-know learning contents for getting started with network security.

(They are all packaged into one piece and cannot be expanded one by one. There are more than 300 episodes in total)

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

3. Technical documents and e-books

I also compiled the technical documents myself, including my experience and technical points in participating in large-scale network security operations, CTF, and digging SRC vulnerabilities. There are more than 200 e-books. Due to the sensitivity of the content, I will not display them one by one.

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

4. Toolkit, interview questions and source code

"If you want to do your job well, you must first sharpen your tools." I have summarized dozens of the most popular hacking tools for everyone. The scope of coverage mainly focuses on information collection, Android hacking tools, automation tools, phishing, etc. Interested students should not miss it.

There is also the case source code and corresponding toolkit mentioned in my video, which you can take away if needed.

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

Finally, here are the interview questions about network security that I have compiled over the past few years. If you are looking for a job in network security, they will definitely help you a lot.

These questions are often encountered when interviewing Sangfor, Qi Anxin, Tencent or other major companies. If you have good questions or good insights, please share them.

Reference analysis: Sangfor official website, Qi’anxin official website, Freebuf, csdn, etc.

Content features: Clear organization and graphical representation to make it easier to understand.

Summary of content: Including intranet, operating system, protocol, penetration testing, security service, vulnerability, injection, XSS, CSRF, SSRF, file upload, file download, file inclusion, XXE, logical vulnerability, tools, SQLmap, NMAP, BP, MSF…

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

Guess you like

Origin blog.csdn.net/Javachichi/article/details/134986421