LinuxCommandLibrary

fasd

frecency-based file and directory navigation

TLDR

Jump to frecent directory

$ z [pattern]
copy
Edit frecent file
$ f [pattern]
copy
List frecent directories
$ d
copy
List frecent files
$ f
copy
Show all frecent paths
$ fasd
copy
Interactive selection
$ fasd -si [pattern]
copy
Add path to database
$ fasd -A [path]
copy

SYNOPSIS

fasd [options] [patterns...]

DESCRIPTION

fasd provides quick access to frequently and recently used files and directories. It tracks access patterns and uses a "frecency" algorithm combining frequency and recency.
The tool integrates with the shell to track cd and file access, enabling fast navigation with minimal typing. Aliases like z (directories) and f (files) provide shortcuts.

PARAMETERS

-s

Show ranks and paths.
-l
List paths only.
-i
Interactive selection.
-e cmd
Execute command on result.
-a
Match files and directories.
-d
Match directories only.
-f
Match files only.
-r
Match by rank only.
-t
Match by recency only.
-A
Add path to database.
-D
Remove path from database.

CONFIGURATION

~/.fasd

Database file tracking frecency scores for files and directories.

ALIASES (shell init)

z: Jump to directory (fasd_cd -d)
zz: Interactive directory select
f: Select file
v: Open frecent file in $EDITOR

CAVEATS

Requires shell integration. Database builds over time. Patterns are substrings. May need manual cleanup of old entries.

HISTORY

fasd was created by Wei Dai (clvv) inspired by autojump and z. It combined features of both, adding file tracking and extensibility. The project became popular for its speed and flexibility in shell navigation.

SEE ALSO

z(1), autojump(1), zoxide(1), fzf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community