Ten-character #Linux or #Unix command? Pshaw! Real Linux and Unix wizards summon their magic spells by mashing the up arrow a thousand times. It's the ancient ritual of command-line mastery. Lmao.
Definitely not lazy

@nixCraft !searchstring:p then up arrow + enter 😆 or, if one is really positive, !searchstring alone
@nixCraft he could have typed ctrl-r then ls to find it quickly.
@nixCraft why would you call me out like that
@nixCraft ofc im not willing to write something twice, am i stupid? I'll search for the command for 20 minutes
@nixCraft dude why not just use "history" command? XD
I mean I can see why if it's on tty or such
@nixCraft For me it's more like "C-r ls" to find ls in my history, wayyy less typing that up up up up up up up up up :D
@nixCraft Alright, someone needs to learn about history|grep and ctrl-r

@nixCraft Again a faux CLI hacker. This avoids retyping the command, and it still works if the command is not in the history:

$((history | grep --only-matching ls || echo ls) | head --lines 1) 😅

@nixCraft love it!!!! that's how it works :)
@nixCraft Who uses arrow? Put set -o vi in your profile then it's simply /mycommand return. Maybe hit a few ns to get the exact one.
@nixCraft Once I learned about CONTROL-R in bash and zsh, I no longer needed the up arrow key as much.
@nixCraft This is not really true. People use ctrl R.