1228
you are viewing a single comment's thread
view the rest of the comments
[-] Skyler@kbin.social 7 points 1 year ago

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

[-] IthronMorn@sh.itjust.works 1 points 1 year ago

Woah! I had no clue!

this post was submitted on 04 Jul 2023
1228 points (98.5% liked)

linuxmemes

20705 readers
785 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS