← 返回命令列表

Linux command

fasd 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Jump to frecent directory

z [pattern]

Edit frecent file

f [pattern]

List frecent directories

d

List frecent files

f

Show all frecent paths

fasd

Interactive selection

fasd -si [pattern]

Add path to database

fasd -A [path]

说明

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.

参数

-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.

FAQ

What is the fasd command used for?

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.

How do I run a basic fasd example?

Run `z [pattern]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s do in fasd?

Show ranks and paths.