This thread is full of great solutions that I know I will ignore…
Let me teach you about reverse-i-search in bash…
Yep, thats a good one. Another one,
ALT + .inputs the last argument from your last command, pressing it multiple times cycles thorough your past arguments.Nice, 30 years and I didn’t know this one. I always use the
$!for the last argument.I’ve never heard of
$!but we use Macs at work.Alt+.doesn’t work so I’ve been using$_.⌥+.does the trick for me on MacOS.Wow, that’s a new Unicode symbol
You might have fun perusing the Miscellaneous Technical block (I sure did).
Dentistry symbols???
Just as a matter of interest, I just tried this and it simply printed ≤ on the console. I’m using
Terminaland Tahoe 26.2.I think for
Terminal.appyou have to enable “Use Option as Meta key”I’ll try to remember to check it out in the morning, thank you.
edit: This worked. This is amazing. Thank you so much.
I don’t even want to think about how much effort this has saved me.
Also ‘cd -’ and aliases… 😁
Yeesh, I just learned something new. Thanks!
I was just about to ask how the hell anyone remembers or knows all these commands, thanks for the info! I am trying to learn Linux and get used to using the Terminal more often.
Ctrl-R
Try it. Please, I beg you.
Pro tip, just do:
alias ls=“ls -lah”
Alternatively, use a different alias so it doesn’t override the original. “la” and just “l” are pretty common
cd -will bring you to the last directory you were in.I also recommend Atuin, the better shell history that works with most shells and can replace both up arrow and ctrl-r
People talking about history without mentioning the laziest answer is to use an alias, which bash usually has ll = la -la or my personal preference is ll = ls -lAh (list + Everything except
.and..+ human readable file size)I like the retro text adventure charm of running a verbose
ls -laafter everycd. It’s like entering a new room and reading its description for possible exits and items!this is the sort of cozy thought I love to encounter on the internet
Very useful tip: i have ls aliased to eza which is ls with eyecandy, I have la aliased to eza -a and I have cd aliased to cd && eza which makes navigating folders very easy. I also aliased … to cd … for convenience. I know a lot of people are purists about the terminal but i think this is a good ballance between convenience and simplicity. Doesnt do a lot of the cursed stuff ricers like to do.
cdis azoxidealias for me. If I need to navigate by folder content, I haveyazionyHow do you have
cd && ezasetup? With an alias the arguments only get appended to the final command so how is it cding to the correct folder?I think i defined cd as a function for interactive shells or something. I dont remember and i dont have my computer so yeah. It should look something like this: cd() {builtin cd “$@” && eza}
yoink <3
$ sudo apt install sl
Try sl instead of ls, you’ll thank me later
ls, ctrl+R
Significantly less up arrows










