1295
Linux Users (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] ezekielmudd@reddthat.com 12 points 2 months ago

Or, just type the command “history”, find the index number of the desired command, then type “! ”, then .

[-] frezik 13 points 2 months ago

That's way more mental effort than pressing up a bunch of times.

[-] eager_eagle@lemmy.world 8 points 2 months ago* (last edited 2 months ago)

or Ctrl+R then search? I don't know why some people still bother with history tbh.

[-] merc@sh.itjust.works 3 points 2 months ago

Because you can pipe history to grep.

[-] Sabata11792@ani.social 2 points 2 months ago

This is going to save me so much time pressing the up arrow.

[-] irish_link@lemmy.world 2 points 2 months ago

Holy cow!! I didn’t know that. I have been using history > history.txt to find “that one command for that one thing” I only need once every other month or so. Thanks, now I can just do that.

[-] lemmyng@piefed.ca 2 points 2 months ago

Ctrl-R if you know part of the command.

this post was submitted on 24 Sep 2025
1295 points (100.0% liked)

Programmer Humor

27811 readers
1392 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS