these discussions are really highlighting for me how such an apparently simple thing "enter some text at a command line prompt and maybe edit it a bit" is surprisingly pretty complex and works in many different ways, even in contexts which superficially appear to be exactly the same

(please do not try to explain to me why this is the case)

@b0rk I can never remember the alternatives to up arrow and edit. For example I do know you can use two exclamation marks !! to re-issue the previous command, so if you forget `sudo` you can just run `sudo !!`. But I've a feeling there are many more of these kinds of things. I'm sure I've been shown loads for hopping around previous folders.

@texhewson @b0rk This!
I learned some fine ago that !* works like !! but omitting the executable name, so you can run a command with the "arguments" of the previous one. However, I haven't been able to find more. I'm not sure what to search for

Follow

I finally figured out what these things are after snooping around a bit in bash's manual. They are word designators.

gnu.org/software/bash/manual/b

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.