Example: I type man ls
, than I want to get man
only.
By using !!
I can get man ls
but how do I get man
?
command historycommand linehistory-expansionshell
Example: I type man ls
, than I want to get man
only.
By using !!
I can get man ls
but how do I get man
?
Best Answer
You can select particular word from last typed command with
!!:
and a word designator. As a word designator you need0
. You may find^
and$
useful too. Fromman bash
:So in your case try: