Juicy lil' bytes

A Simple One-Liner to Rerun Your Last Shell Command With a Modification

This one-liner will modify an error in your last shell command and automatically re-run it.

You meant to run make && make install to build and install an application, but you actually typed nake && make install. The scenic route to correct this is UP ARROW to retrieve the command, navigate to the beginning of the line, switch the n to m, and then submit it again.

Here’s your jetpack:


This command uses the generic syntax:


to modify the before substring to the after substring and then it automatically resubmits the command.