Bird
0
0

Which part of the command grep -i 'hello' file.txt is the argument?

easy📝 Conceptual Q2 of 15
Linux CLI - Linux Basics and Terminal
Which part of the command grep -i 'hello' file.txt is the argument?
A'hello' and 'file.txt'
B'grep'
C'-i'
DThere is no argument
Step-by-Step Solution
Solution:
  1. Step 1: Identify command parts

    In the command, grep is the command, -i is an option, and the rest are arguments.
  2. Step 2: Recognize arguments

    Arguments are the inputs the command works on, here the string 'hello' and the file 'file.txt'.
  3. Final Answer:

    'hello' and 'file.txt' -> Option A
  4. Quick Check:

    Arguments = Inputs to command [OK]
Quick Trick: Arguments are usually file names or search strings after options [OK]
Common Mistakes:
MISTAKES
  • Mistaking options for arguments
  • Thinking command is an argument
  • Ignoring multiple arguments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes