More On Inserting Arguments From Previous Commands
I previously blogged on using the shortcut Alt + point to insert the final declaration from the previous command.
Suppose you lot don't desire the final argument. Instead, you lot desire to insert the first, second, or 3rd declaration of a previous command.
No problem!
Alt + 1 + dot inserts the commencement declaration of the final command. To telephone commutation it inward properly, concur the alt key, press the 1 key, too and then the dot (".") key.
Similarly, alt + two + point inserts the 2nd dominance argument.
For example, you lot only executed this command.
If you lot directly type inward cat too and then alt + two + dot, it volition insert the 2nd declaration from the final dominance (-l is the first).
You tin toilet repeat the telephone commutation sequence, too this volition become dorsum 1 dominance at a time, too insert the specified declaration of that command.
If you lot desire only the dominance itself, non an argument, type inward alt + 0 + dot .
P.S. Related articles from this blog:
Suppose you lot don't desire the final argument. Instead, you lot desire to insert the first, second, or 3rd declaration of a previous command.
No problem!
Alt + 1 + dot inserts the commencement declaration of the final command. To telephone commutation it inward properly, concur the alt key, press the 1 key, too and then the dot (".") key.
Similarly, alt + two + point inserts the 2nd dominance argument.
For example, you lot only executed this command.
$ ls -l /home/peter/somefile.txt secondfile.txt
-rw-r--r-- 1 peter peter 8115 2007-12-19 21:03 somefile.txt
$
If you lot directly type inward cat too and then alt + two + dot, it volition insert the 2nd declaration from the final dominance (-l is the first).
$ truthful cat /home/peter/somefile.txt
You tin toilet repeat the telephone commutation sequence, too this volition become dorsum 1 dominance at a time, too insert the specified declaration of that command.
If you lot desire only the dominance itself, non an argument, type inward alt + 0 + dot .
P.S. Related articles from this blog:
0 Response to "More On Inserting Arguments From Previous Commands"
Post a Comment