
Lab 3 Quiz

Quiz
•
Professional Development
•
University
•
Medium
Priyanka S Shivaramaiah
Used 8+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the command ls > capture.txt do?
Lists files on the terminal
Saves the list of files in capture.txt
Displays an error message in capture.txt
Combines output with stderr
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the command ./error.sh 1> capture.txt 2> error.txt, what is the purpose of 1>?
Redirects both stdout and stderr
Redirects standard output to capture.txt
Displays output in the terminal
Ignores standard output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of running ./error.sh > /dev/null 2> /dev/null?
Only stdout is shown on the terminal
Both stdout and stderr are discarded
Only stderr is redirected to the terminal
The script fails silently
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you redirect the output of ls to a file named capture.txt?
ls >> capture.txt
ls = capture.txt
ls > capture.txt
ls | capture.txt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does chmod +x error.sh do?
Changes file ownership
Adds read permissions
Makes the file executable
Deletes the file
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you run ./error.sh > capture.txt?
The script runs without output
The output goes to capture.txt
The script fails to run
The terminal shows an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of 2> in the command ./error.sh 2> capture.txt?
Redirects stdout
Redirects stderr
Displays output on the screen
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
TOGAF ABBs, SBBs, Views & Viewpoints

Quiz
•
University
14 questions
ITC office

Quiz
•
University
11 questions
Revision HRPR

Quiz
•
University
15 questions
VISHAL JAISWAL's March Training

Quiz
•
KG - Professional Dev...
15 questions
Day 15 Complete SEO - 28th June 2024

Quiz
•
University
11 questions
Analysis Advance

Quiz
•
University
9 questions
Curso de IPv6 Básico a Distância - M1Q1

Quiz
•
University - Professi...
10 questions
Botify Basics Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University