Quantcast
Channel: d0wn
Viewing all articles
Browse latest Browse all 73

Bash : Reuse the last argument

$
0
0

Let’s say you are waiting for a host to come back online . to ssh into it
you launch a little

ping 192.168.1.33

To see when the host return online ,

when the host finally ping , you can ctrl+c to kill the ping , and launch

ssh !$

this will have the effect of launching ssh with the previous argument of the last command , in this case 192.168.1.33

 


Viewing all articles
Browse latest Browse all 73

Trending Articles