← 返回命令列表

Linux command

bd 命令

文件

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

常用示例

Go back

bd [dirname]

List

bd -l

说明

bd (back directory) is a bash utility for quickly navigating to parent directories by name instead of using multiple `cd ../../../` commands. It searches upward in the directory tree for a matching directory name. The tool simplifies navigation in deep directory structures.

参数

-l, --list
List all parent directories
-h, --help
Show help

FAQ

What is the bd command used for?

bd (back directory) is a bash utility for quickly navigating to parent directories by name instead of using multiple `cd ../../../` commands. It searches upward in the directory tree for a matching directory name. The tool simplifies navigation in deep directory structures.

How do I run a basic bd example?

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

What does -l, --list do in bd?

List all parent directories