Install thefuck by entering the following commands in the terminal:
sudo apt update sudo apt install thefuck
Description:
spelling corrector of console commands
The Fuck attempts to fix user's command line mistakes, by composing new commands applying a series of matching rules. It supports various shells, such as bash, fish, tcsh, and zsh. . This package provides the Python 2 version of The Fuck as python-pathlib currently lacks Python 3 support. Furthermore the 'sudo' matching rule has been disabled for users' safety.
Homepage: https://github.com/nvbn/thefuck
Version: 3.11-2
Section: universe/python