← 返回命令列表

Linux command

fuck 命令

文本

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

常用示例

Fix previous command

fuck

Confirm before running

fuck --yeah

Use specific correction

fuck --yes [number]

Show available fixes

fuck --help

说明

fuck is the command from The Fuck application that corrects previous console commands. It analyzes the previous failed command and suggests corrections. When you mistype a command or forget sudo, running fuck proposes the corrected command. It learns from your shell history and supports many common mistake patterns. fuck integrates with shells through aliases or key bindings for quick access.

参数

--yeah, --yes
Confirm fix immediately.
--help
Display help information.

FAQ

What is the fuck command used for?

fuck is the command from The Fuck application that corrects previous console commands. It analyzes the previous failed command and suggests corrections. When you mistype a command or forget sudo, running fuck proposes the corrected command. It learns from your shell history and supports many common mistake patterns. fuck integrates with shells through aliases or key bindings for quick access.

How do I run a basic fuck example?

Run `fuck` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --yeah, --yes do in fuck?

Confirm fix immediately.