Smarter Navigation
Linux Magazine|#289/December 2024: Coding with AI
Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.
Bruce Byfield
Smarter Navigation

In most shells, the main navigation utility is cd (change directory). Generally, cd is built into the shell, which is why it does not have its own man page like other commands. The lack of a man page is usually not noticed, because the bare cd is all that most users need. However, when directories have multiple levels, cd can require tedious typing, especially when you have to travel up the directory structure and down another branch. A modern version of cd, zoxide, changes all that by using a database that, once set up, requires the typing of only the last directory in the path.

To get its results, zoxide relies on an algorithm based on how often a directory is accessed. When first added to the database, a directory is given a score of 1. Each time it is accessed, its score rises by one. When a query is made, a directory adds 4 if accessed in the last hour and 2 if accessed in the last day or last week. The higher the value, the most likely a directory is to be the one sought. When the database reaches the maximum number of entries, it reassigns the frequency of access and deletes any directory that falls below 1.

Installation and Configuration

Zoxide is available in many distributions, as well as on multiple platforms and in multiple package formats. However, installing the package is just the beginning. To be functional, zoxide requires at least some configuration.

この記事は Linux Magazine の #289/December 2024: Coding with AI 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

この記事は Linux Magazine の #289/December 2024: Coding with AI 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

LINUX MAGAZINEのその他の記事すべて表示
MADDOG'S DOGHOUSE
Linux Magazine

MADDOG'S DOGHOUSE

The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.

time-read
3 分  |
#289/December 2024: Coding with AI
MakerSpace
Linux Magazine

MakerSpace

Rust, a potential successor to C/C++, claims to solve some memory safety issues while maintaining high performance. We look at Rust on embedded systems, where memory safety, concurrency, and security are equally important

time-read
10+ 分  |
#289/December 2024: Coding with AI
In Harmony
Linux Magazine

In Harmony

Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.

time-read
9 分  |
#289/December 2024: Coding with AI
Monkey Business
Linux Magazine

Monkey Business

Even small changes in a web page can improve the browsing experience. Your preferred web browser provides all the tools you need to inject JavaScript to adapt the page. You just need a browser with its debugging tools, some knowledge of scripting, and the browser extension Tampermonkey.

time-read
10+ 分  |
#289/December 2024: Coding with AI
Smarter Navigation
Linux Magazine

Smarter Navigation

Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.

time-read
4 分  |
#289/December 2024: Coding with AI
Through the Back Door
Linux Magazine

Through the Back Door

Cybercriminals are increasingly discovering Linux and adapting malware previously designed for Windows systems. We take you inside the Linux version of a famous Windows ransomware tool.

time-read
9 分  |
#289/December 2024: Coding with AI
Page Pulse
Linux Magazine

Page Pulse

Do you want to be alerted when a product is back in stock on your favorite online store? Do you want to know when a website without an RSS feed gets an update? With changedetection.io, you can stay up-to-date on website changes.

time-read
8 分  |
#289/December 2024: Coding with AI
Arco Linux
Linux Magazine

Arco Linux

ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.

time-read
5 分  |
#289/December 2024: Coding with AI
Ghost Coder
Linux Magazine

Ghost Coder

Artificial intelligence is increasingly supporting programmers in their daily work. How effective are these tools? What are the dangers? And how can you benefit from Al-assisted development today?

time-read
10+ 分  |
#289/December 2024: Coding with AI
Zack's Kernel News
Linux Magazine

Zack's Kernel News

Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

time-read
9 分  |
#289/December 2024: Coding with AI