Recall & Review
beginner
What are the three main parts of a Linux command?
A Linux command usually has three parts: command (the program to run), options (which modify how the command works), and arguments (the targets or inputs for the command).
Click to reveal answer
beginner
What is the role of options in a command?
Options change how the command behaves. They usually start with a dash (-) or double dash (--). For example,
ls -l uses the -l option to show detailed file info.Click to reveal answer
beginner
In the command
grep -i 'hello' file.txt, identify the command, option, and argument.- Command:
grep - Option:
-i(ignore case) - Arguments:
'hello'(pattern),file.txt(file to search)
Click to reveal answer
beginner
True or False: Arguments always start with a dash (-).
False. Arguments are usually names or values and do not start with a dash. Options start with dashes.
Click to reveal answer
beginner
Why is it important to understand command structure in Linux?
Knowing command structure helps you use commands correctly and safely. It lets you add options to change behavior and provide the right arguments to get the results you want.
Click to reveal answer
Which part of the command
cp -r folder1 folder2 is the option?✗ Incorrect
The option is
-r, which tells the copy command to copy directories recursively.In the command
tar -czf archive.tar.gz folder, what does archive.tar.gz represent?✗ Incorrect
archive.tar.gz is an argument specifying the name of the archive file to create.What symbol usually starts an option in Linux commands?
✗ Incorrect
Options usually start with a dash (-) or double dash (--).
Which part of the command
ls -a /home/user is the argument?✗ Incorrect
/home/user is the argument specifying the directory to list.True or False: The command is always the first word in a Linux command line.
✗ Incorrect
The command is always the first word; options and arguments follow.
Explain the three parts of a Linux command and give an example.
Think about a command you use often and break it down.
You got /4 concepts.
Why do options usually start with a dash (-) and how do they affect the command?
Options change how the command works.
You got /3 concepts.