Command-line tool
thefuck
brew/thefuck
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Programmatically correct mistyped console commands
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install thefuck
macOS
brew install thefuck pipx install thefuck
Linux
brew install thefuck pipx install thefuck
Set the `fuck` alias to `thefuck` tool
eval "$(thefuck --alias)"
Try to match a rule for the previous command
fuck
Confirm the first choice immediately (correct argument depends on level of annoyance)
fuck --yes
Related command-line tools
- pay-respects
Command suggestions, command-not-found and thefuck replacement written in Rust - qr
A command line for generating QR-code from console. - fif
A command-line tool for detecting and optionally correcting files with incorrect extensions. - logkitty
Display pretty Android and iOS logs without Android Studio or Console.app, with intuitive Command Line Interface.… - dottrace-clt
JetBrains dotTrace Command Line Tools that enable analyzing performance of .NET applications outside of Visual Studio. - lolcat
Rainbows and unicorns in your console! - pterm
A PuTTY-like wrapper program for Windows command prompts (or anything else running in a Windows console) that is not… - ascii-image-converter
A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents