What is standard input?
Standard input (file descriptor 0) is where a command reads data.
Study Shell Streams and Pipes with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
What is standard input?
Standard input (file descriptor 0) is where a command reads data.
What does standard output carry?
Standard output (file descriptor 1) carries a command’s normal results.
What does standard error carry?
Standard error (file descriptor 2) carries diagnostics and error messages.
What does a regular pipe (`|`) connect?
A regular pipe (`|`) sends one command’s standard output to the next command’s standard input.
Does a regular pipe (`|`) pass standard error?
No. A regular pipe passes standard output, not standard error; an earlier command’s errors usually remain visible in the terminal.
In Bash, what does `|&` add to a pipe?
In Bash, `|&` sends the earlier command’s standard error through the pipe along with standard output.
Which file descriptors identify stdin, stdout, and stderr?
Standard input is file descriptor 0, standard output is 1, and standard error is 2.
Why use a pipe between commands?
Pipes let commands pass data directly between stages, so intermediate results need not first be saved to a file.
In `printf '%s\n' apple pear apple | sort | uniq -c`, what does `sort` do before `uniq -c`?
`sort` orders the lines before `uniq -c` counts adjacent duplicates.
Why can standard output and standard error appear together in the terminal?
In a typical Unix-like shell, both streams are displayed by default, so they may appear together even though they remain separate.
In a regular pipe, what becomes the next command’s input?
The first command’s standard output becomes the next command’s standard input.
What reaches `uniq -c` in `printf '%s\n' apple pear apple | sort | uniq -c`?
`uniq -c` receives sorted lines and counts adjacent duplicates; the pipe passes the preceding command’s standard output as its input.
Review EMT airway assessment, breathing mechanics, airway management, ventilation support, and priorities for common respiratory emergencies.
Learn how to assess airway and breathing, distinguish ventilation from oxygenation and respiration, provide appropriate support, and recognize common respiratory emergencies.
Review cardiac assessment and emergencies, adult and pediatric CPR, AED use, and special resuscitation priorities for EMTs.
A medium-difficulty quiz on EMT cardiovascular assessment, cardiac emergencies, CPR, AED use, and special resuscitation considerations.
Learn how EMTs assess cardiac emergencies, recognize poor perfusion, and provide prompt care for cardiac arrest and other resuscitation situations.
Review EMT priorities and key recognition and care principles for neurologic, metabolic, respiratory, toxicologic, behavioral, and environmental emergencies.
A medium-difficulty quiz on recognizing and responding to medical emergencies within EMT scope and local protocols.
Learn how EMTs approach medical emergencies, recognize time-sensitive conditions, provide care within their scope and local protocols, and arrange appropriate transport.
A medium-difficulty quiz on practical assessment, treatment, and transport decisions in obstetric, gynecologic, neonatal, and pediatric emergencies.
A medium-difficulty quiz on applying EMT operational principles to scene safety, communication, incident management, patient rights, and coordinated care.
Review EMT exam domains and the priorities, interventions, and responsibilities that guide safe care in common emergency scenarios.
Practice applying EMT scene safety, assessment, intervention, transport, and operational principles to realistic situations.