• veng@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    history | grep {some part of command}

    Much more useful for going further back, even without grep.

    • mazkarth@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      As some one who SSH’s from a phone to run Docker containers and will be moving the container volumes to a different location, I thank you for this lovely command.