Carly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 年前Look, I'm lazy, okay?lemmy.worldimagemessage-square88fedilinkarrow-up11.24Karrow-down119
arrow-up11.23Karrow-down1imageLook, I'm lazy, okay?lemmy.worldCarly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 年前message-square88fedilink
minus-squareSkyler@kbin.sociallinkfedilinkarrow-up7·1 年前This is my approach, and for those who don’t know, you can use those line numbers that come back from history to rerun the command. Like if your output is something like this: $ history | grep tmp 501 ls /tmp 502 history | grep tmp You can run !501 and it will just re-run ls /tmp
This is my approach, and for those who don’t know, you can use those line numbers that come back from
history
to rerun the command. Like if your output is something like this:$ history | grep tmp 501 ls /tmp 502 history | grep tmp
You can run
!501
and it will just re-runls /tmp
Woah! I had no clue!