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.
هذه القصة مأخوذة من طبعة #289/December 2024: Coding with AI من Linux Magazine.
ابدأ النسخة التجريبية المجانية من Magzter GOLD لمدة 7 أيام للوصول إلى آلاف القصص المتميزة المنسقة وأكثر من 9,000 مجلة وصحيفة.
بالفعل مشترك ? تسجيل الدخول
هذه القصة مأخوذة من طبعة #289/December 2024: Coding with AI من Linux Magazine.
ابدأ النسخة التجريبية المجانية من Magzter GOLD لمدة 7 أيام للوصول إلى آلاف القصص المتميزة المنسقة وأكثر من 9,000 مجلة وصحيفة.
بالفعل مشترك? تسجيل الدخول
MADDOG'S DOGHOUSE
The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.
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
In Harmony
Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.
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.
Smarter Navigation
Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.
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.
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.
Arco Linux
ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.
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?
Zack's Kernel News
Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.