all 27 comments

sorted by: hot top controversial new old
[–] 22 points 11 months ago (1 child)
  • [–] 19 points 11 months ago (1 child)
  • [–] 11 points 11 months ago

    It's either this or history | grep 'some-command'.

  • source
  • [–] 10 points 11 months ago (6 children)

    Me with git pushes: up up up, enter x3. Like 6 times a day.

  • source
  • hideshow 6 child comments
  • [–] [S] 9 points 11 months ago (4 children)
  • [–] 12 points 11 months ago (2 children)

    Not me using Linux for 15 years and just learning you can search through previous commands...

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 11 months ago*

    history

    !982

  • source
  • [–] 9 points 11 months ago

    You forgot a couple down arrows for when you overshoot.

  • source
  • [–] 8 points 11 months ago
    [–] 8 points 11 months ago

    Why would I type out this command that's six whole keystrokes long when I can save time by pressing 'up' twenty times instead?

  • source
  • [–] 7 points 11 months ago

    If you're in this picture try using fzf and backwards search, much more effective, hell even without fzf.

  • source
  • [–] 6 points 11 months ago

    Some of you haven't read the bash manual and it shows.

    Blow your mind to know about bang patterns. You've used !! but do you know about !$?

  • source
  • [–] 6 points 11 months ago

    Don't call me out like that lol. Also Atuin is pretty cool for this as you are showed a list of the commands used when you press ⬆️.

  • source
  • [–] 6 points 11 months ago*

    The command you want is in the buffered history of a still running terminal that's doing something you don't want to close 💀

  • source
  • [–] 5 points 11 months ago (2 children)

    Introducing: fish

    And then you just need to remember the first letters of the previously typed command

  • source
  • hideshow 2 child comments
  • [–] 4 points 11 months ago (1 child)
    [–] 4 points 11 months ago

    If you haven't, try McFly - is a much better backwards / history search in the shell.

  • source
  • [–] 3 points 11 months ago

    After a time ypu look into extending the history too... 500line by default is far too short for all the awesome commands

  • source