What role does a shell play after you enter a command at the command prompt?
Command-Line Shell Basics Online Quiz Questions
Use this free practice quiz with 20 questions to review Command-Line Shell Basics, test your knowledge, and prepare for your next test or exam.
Which are listed as possible ways to request command help in a Unix-like shell? Select all that apply.
- A
command --help - B
command -h - C
man command - D
command [OPTION], where the brackets are typed literally - E
help commandin every shell and program
True or false: In the command ls -l reports, reports is the option and -l is the argument.
- A
True
- B
False
Before acting on a target, which command can you run to check your current working directory?
Many commands use exit status to conventionally indicate success; a status indicates a problem or another condition.
A command finishes without displaying anything. How can you assess whether it succeeded rather than assuming that silence means failure? Include the Bash method for checking the previous command's status.
A shell prompt appears, indicating that the shell is ready. What should you do next?
- A
Include the prompt symbol as the first character of every command.
- B
Wait for the prompt to disappear before entering a command.
- C
Type the command after the prompt and press Enter; do not treat the prompt as part of the command.
- D
Use the prompt symbol alone to determine whether you have root permissions.
Which actions are part of a careful command-line workflow? Select all that apply.
- A
Check your location with
pwdand inspect the target withls. - B
Read the command's help if its behavior or options are unfamiliar.
- C
Identify the command, its options, and each argument before pressing Enter.
- D
Quote paths containing spaces and check potentially destructive commands carefully.
- E
Read the output or error and verify whether the intended result occurred.
- F
Assume that a command succeeded whenever it prints no error.
True or false: If command help shows an optional item as [OPTION], you should usually type the square brackets as part of the command.
- A
True
- B
False
In ls -l reports, which exact option requests a long-format listing?
Many commands return an . A value of conventionally indicates success.
A help page shows the syntax [OPTION]. What do the square brackets usually indicate?
- A
The brackets mean the item must always be typed exactly as shown.
- B
The brackets usually mark an optional item and are not typed.
- C
The brackets mean the item is a filename that must be replaced.
- D
The brackets indicate that the command will display an error.
In a Unix-like shell, ls "project notes" normally passes project notes as one argument.
- A
True
- B
False
Before acting on a target, which Unix-like shell command from the careful workflow prints your current working directory?
What does a shell do when you enter a command?
- A
It only displays a readiness symbol and never processes commands.
- B
It translates every command into a graphical menu.
- C
It reads and interprets input, runs commands, and displays results.
- D
It guarantees that every command works the same way in every operating system.
True or false: In a command such as ls -l reports, -l is the argument that identifies the directory, while reports is the option that modifies the listing.
- A
True
- B
False
In the careful workflow, which Unix-like shell command is used to inspect a target?
Which help system does PowerShell provide for commands?
- A
man command - B
help command - C
command -h - D
Get-Help
What exit-status number conventionally indicates that a command succeeded?
What does a command-line prompt indicate, and should you include the prompt itself when typing a command?
- A
It signals that the shell is ready for input; it is not part of the command.
- B
It is always the first character of the command and must be included.
- C
It proves that the user has administrator permissions.
- D
It displays the results of the previous command.
Related study packs and tools
3 Airway, Respiration, and Ventilation
Review EMT airway assessment, breathing mechanics, airway management, ventilation support, and priorities for common respiratory emergencies.
3 Airway, Respiration, and Ventilation
Learn how to assess airway and breathing, distinguish ventilation from oxygenation and respiration, provide appropriate support, and recognize common respiratory emergencies.
4 Cardiology and Resuscitation
Review cardiac assessment and emergencies, adult and pediatric CPR, AED use, and special resuscitation priorities for EMTs.
4 Cardiology and Resuscitation
A medium-difficulty quiz on EMT cardiovascular assessment, cardiac emergencies, CPR, AED use, and special resuscitation considerations.
4 Cardiology and Resuscitation
Learn how EMTs assess cardiac emergencies, recognize poor perfusion, and provide prompt care for cardiac arrest and other resuscitation situations.
6 Medical Emergencies
Review EMT priorities and key recognition and care principles for neurologic, metabolic, respiratory, toxicologic, behavioral, and environmental emergencies.
6 Medical Emergencies
A medium-difficulty quiz on recognizing and responding to medical emergencies within EMT scope and local protocols.
6 Medical Emergencies
Learn how EMTs approach medical emergencies, recognize time-sensitive conditions, provide care within their scope and local protocols, and arrange appropriate transport.
7 Obstetrics, Gynecology, and Pediatric Emergencies
A medium-difficulty quiz on practical assessment, treatment, and transport decisions in obstetric, gynecologic, neonatal, and pediatric emergencies.
8 EMS Operations
A medium-difficulty quiz on applying EMT operational principles to scene safety, communication, incident management, patient rights, and coordinated care.
9 Comprehensive EMT Practice Scenarios and Review
Review EMT exam domains and the priorities, interventions, and responsibilities that guide safe care in common emergency scenarios.
9 Comprehensive EMT Practice Scenarios and Review
Practice applying EMT scene safety, assessment, intervention, transport, and operational principles to realistic situations.