Bird
0
0

Which of the following is the correct syntax to rerun the last command starting with git?

easy📝 Syntax Q12 of 15
Linux CLI - Environment and Configuration
Which of the following is the correct syntax to rerun the last command starting with git?
A!!git
B!$git
C!git
D!^git
Step-by-Step Solution
Solution:
  1. Step 1: Recall syntax for rerunning commands by prefix

    Using !string reruns the last command starting with string.
  2. Step 2: Analyze options

    !git reruns last command starting with 'git'. Others are invalid or incorrect syntax.
  3. Final Answer:

    !git -> Option C
  4. Quick Check:

    Use !string to rerun commands [OK]
Quick Trick: Use ! plus command start to rerun quickly [OK]
Common Mistakes:
  • Using !!git which is invalid
  • Confusing !$ with rerun syntax
  • Trying !^git which is not correct

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes