System Management
Earlier in a bash session an administrator ran rsync -av /data /backup, followed by several unrelated commands. The administrator now wants to repeat the most recent command that began with rsync without retyping it. Which entry does this?
Show the answer
Correct answerA. !rsync
!string re-executes the most recent history entry that starts with that string, so !rsync reruns the earlier rsync command. !! repeats only the immediately previous command, and !!rsync would append the text rsync to it instead of searching history.