parameter
parameter
Using !$ To Use Last Parameter
Tue, 07/22/2008 - 08:15 | by philipnorton42Much like using Alt+. to print out last parameter you can also use !$ to use the last parameter from the previous command. Here is a simple example.
Use Alt+. To Print Out Last Parameter
Fri, 06/27/2008 - 09:02 | by philipnorton42A handy trick when using a Unix/Linux system is to repeat the last parameter from the previous line. Lets say that you typed in the following line to move a file to another directory.
$ mv file.txt /usr/local/
To then move into that directory you can just type cd and Alt+. to copy in the last parameter used in the last line. This will put the following on the command line.