For example, in bash I can type !xyz
which will run the last command I typed beginning with xyz
.
How can I bring up the last command I typed beginning with xyz
but without executing it?
e.g so I can change parameters before execution….
bashlinux
For example, in bash I can type !xyz
which will run the last command I typed beginning with xyz
.
How can I bring up the last command I typed beginning with xyz
but without executing it?
e.g so I can change parameters before execution….
Best Answer
You can do it like this: On the command prompt press Ctrl+r and then type the command you want to recall, in your case
xyz
. This will show you the complete command without executing it.