Multiple choice technology

What is the commandline shortcut which repeats the last argument for the command last used

  1. !

  2. !$
  3. !&

  4. !!

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

!$ is a history expansion that substitutes the last argument from the previous command. For example, after 'mkdir /tmp/test', 'cd !$' expands to 'cd /tmp/test'. !! repeats the entire command line, not just the last argument.