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.
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.
Let me teach you about reverse-i-search in bash…
https://linuxvox.com/blog/ctrl-r-linux/
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
Sorry, I should have been more clear … When ssh’d into a remote Unix machine from a Mac, it doesn’t me. I don’t think I’ve tried locally.
I don’t even want to think about how much effort this has saved me.
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.
You can also just grep through your
.bash_historyAnd in fish
Neat
Huh. And here I had aliased “history | grep” to hgrep and was using that.