Latest Blog Post read all

  • My favorite bash shortcuts

    This isn’t so much a blog post, as it it a note. I’ll probably be updating this list in the future with more shortcuts as I discover them.

    #1 - Last command shortcut

    The string !! expands to the entirety of the last command run. Forgot sudo on a command? no problem, just type sudo !!

    #2 - Last argument of the last command

    The variable $_ is set to the last argument of the last command run. Very useful if doing lots of stuff with the same file.

    #3 - Search the history

    !gcc will expand to the last command that starts wi...

    read more