- Save the script above to a file, e.g. tlqkf.
- Make the script executable by running chmod +x tlqkf.
- Run an invalid command, e.g. 칟ㅁㄱ.
- Immediately after the error message appears, type tlqkf and press Enter.
- The script will correct the invalid command and run the corrected command. In this example, it will correct 칟ㅁㄱ to clear and run clear.