echo !.

can someone tell me what does this code do?

echo !.

!. retrieves command starting with . from command history

example

>ls
>df -k
>who
>date
>!d

here !d retrieves df-k

got it.. many thanks :slight_smile: