1288
Linux Users (lemmy.ml)
top 50 comments
sorted by: hot top controversial new old
[-] TabbsTheBat@pawb.social 91 points 1 week ago

I've been using ctrl + R more now :3.. though I definitely used to ↑↑↑↑↑↑↑

[-] I_Am_Jacks_____@sh.itjust.works 38 points 1 week ago

check out fzf (install fzf and add (assuming bash) eval "$(fzf --bash)" to your .bashrc) Makes ctrl+r a superpower

[-] aquovie@lemmy.cafe 5 points 1 week ago

It's awesome until you want to put the cursor in a specific spot of a previous command.

$ rm -f delete-me.txt
ctrl-r "me", ctrl-b, ctrl-k
$ rm -f delete

But I still use fzf because while I used to do the above, fzf offered more advantage that made switching worth it.

load more comments (1 replies)
[-] tyler@programming.dev 22 points 1 week ago

Ctrl + r with fzf and you’ll never go back.

load more comments (1 replies)

...until you press up one too many times and enter the same command but with a typo. Again.

[-] AmidFuror@fedia.io 10 points 1 week ago

Been there, done that.

load more comments (2 replies)
[-] aeharding@vger.social 34 points 1 week ago

The number of people who don’t reverse-I-search is too damn high

[-] derpgon@programming.dev 26 points 1 week ago

CTRL+R for those unitiated

[-] Everyday0764@lemmy.zip 9 points 1 week ago

reverse-i-search + fzf = <3

[-] mvirts@lemmy.world 30 points 1 week ago
[-] veni_vedi_veni@lemmy.world 14 points 1 week ago

and whenever you forget to sudo: sudo !!

[-] bandwidthcrisis@lemmy.world 9 points 1 week ago

Ctrl-r, l ctrl-r, ctrl-r, ctrl-r, ctrl-r, ctrl-r, ctrl-r, ctrl-r, ctrl-r. To get ls.

[-] 2910000@lemmy.world 7 points 1 week ago

No way! I didn't know you could cycle through the results like that... awesome!

load more comments (1 replies)
[-] Mad_Punda@feddit.org 17 points 1 week ago

I’ve probably done that for ls

[-] yggstyle@lemmy.world 15 points 1 week ago

taptaptaptap.... taptaptaptap.... taptaptaptap taptaptaptap taptaptaptap

.... taptaptaptap

... tap ...

... shit I was on a different user when I typed it.

Or "shit, I did in tmux last time so I could close the terminal window."

[-] salacious_coaster@infosec.pub 13 points 1 week ago
[-] drkt@scribe.disroot.org 9 points 1 week ago

tar -xvf

but only because I had to look it up twice so now my brain has committed it to memory
I don't even know what it does

load more comments (2 replies)
[-] Hammerheart@programming.dev 7 points 1 week ago
load more comments (6 replies)
[-] killeronthecorner@lemmy.world 13 points 1 week ago

O(n) access, very efficient.

No, I do not care to share the value of n

[-] ezekielmudd@reddthat.com 12 points 1 week ago

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

[-] frezik 13 points 1 week ago

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

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

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

load more comments (2 replies)
load more comments (2 replies)
[-] pcouy@lemmy.pierre-couy.fr 10 points 1 week ago

https://github.com/atuinsh/atuin is a great tool to manage and search your shell history. I especially enjoy it being able to search commands based on the working directory I was in when I ran them.

It also has more features (which I don't use) to manage dotfiles and sync shell history across hosts/devices.

load more comments (1 replies)
[-] Edgarallenpwn@midwest.social 9 points 1 week ago

I typed it once, I'm not typing it again

[-] Hammerheart@programming.dev 9 points 1 week ago

cat ~/.bash_history | grep

[-] freewheel@sh.itjust.works 9 points 1 week ago

Substring completion on ZSH. Type in a small part of the command you want to find and then press up.

[-] entwine@programming.dev 7 points 1 week ago

bash supports this feature too btw

load more comments (1 replies)
[-] SexualPolytope@lemmy.sdf.org 9 points 1 week ago

In fish, you can enter part of the command, and then press up to search for it. It's kinda awesome.

load more comments (2 replies)
[-] flyingSock@feddit.org 8 points 1 week ago

also when they see this post

[-] remon@ani.social 7 points 1 week ago

You have to be a linux user to use the console now?

[-] deacon@lemmy.world 7 points 1 week ago

Wow this is really validating for me to read. I’ve been using Linux for a few years but I’m definitely not a computer expert and am intimidated by the command line.

I’ve always felt like googling every command and arrowing up to find an old entry rather than just googling it again marked me as a fake Linux user, not a real one.

[-] cm0002@lemmy.world 8 points 1 week ago

Lol don't feel bad, I can do advanced crazy shit with Linux like pivoting the running OS into RAM so I can unmount the boot drive to do whatever without ever rebooting

But I still [Web Search] commands a shit ton of the time LMAO

load more comments (3 replies)
[-] alecsargent@lemmy.zip 7 points 1 week ago

I always go past it because I go way to fast.

load more comments (1 replies)
[-] baltakatei@sopuli.xyz 7 points 1 week ago

$ history | grep 'gre[p]' | less -S

load more comments (3 replies)
[-] merc@sh.itjust.works 6 points 1 week ago

Too many people still use Bash.

load more comments (1 replies)
[-] desmosthenes@lemmy.world 6 points 1 week ago
load more comments
view more: next ›
this post was submitted on 24 Sep 2025
1288 points (100.0% liked)

Programmer Humor

26696 readers
2042 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